Skip to content

Commit

Permalink
Add issue_commands.json for type/docs label. (grafana#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
osg-grafana authored Nov 30, 2022
1 parent bf34485 commit 3d8f532
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/issue_commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"type": "label",
"name": "type/docs",
"action": "addToProject",
"addToProject": {
"url": "https://github.com/orgs/grafana/projects/69"
}
}
]
21 changes: 21 additions & 0 deletions .github/workflows/issue_commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run commands when issues are labeled
on:
issues:
types: [labeled]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run Commands
uses: ./actions/commands
with:
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
configPath: issue_commands

0 comments on commit 3d8f532

Please sign in to comment.