Skip to content

Commit 0b1e28a

Browse files
committed
Automatically label issues as needing triage and add them to project board
Signed-off-by: Anish Asthana <anishasthana1@gmail.com>
1 parent ba780da commit 0b1e28a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
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/add-to-project@v0.5.0
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)