Skip to content

Commit 3dfed49

Browse files
committed
Automatically label issues as needing triage and add them to project board
Signed-off-by: Anish Asthana <[email protected]>
1 parent 59bab13 commit 3dfed49

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/auto-add-issues.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Label new issues as needs-triage and add to CodeFlare Sprint Board
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
jobs:
7+
add_label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
steps:
12+
- uses: actions/github-script@v6
13+
with:
14+
script: |
15+
github.rest.issues.addLabels({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
labels: ["triage/needs-triage"]
20+
})
21+
22+
add-to-project:
23+
name: Add issue to project
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/[email protected]
27+
with:
28+
project-url: https://github.com/orgs/project-codeflare/projects/8
29+
github-token: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}

0 commit comments

Comments
 (0)