Skip to content

Commit a496aa1

Browse files
authored
feat(docs): auto assign type/docs label to docs project (#57)
1 parent 14ea102 commit a496aa1

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/issue_commands.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"type": "label",
4+
"name": "type/docs",
5+
"action": "addToProject",
6+
"addToProject": {
7+
"url": "https://github.com/orgs/grafana/projects/69"
8+
}
9+
}
10+
]

.github/workflows/issue_commands.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run commands when issues are labeled
2+
on:
3+
issues:
4+
types: [labeled]
5+
jobs:
6+
main:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Actions
10+
uses: actions/checkout@v2
11+
with:
12+
repository: "grafana/grafana-github-actions"
13+
path: ./actions
14+
ref: main
15+
- name: Install Actions
16+
run: npm install --production --prefix ./actions
17+
- name: Run Commands
18+
uses: ./actions/commands
19+
with:
20+
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
21+
configPath: issue_commands

0 commit comments

Comments
 (0)