Skip to content

Commit b0a15cd

Browse files
committed
Add issue automation to tidy Help Wanted
All "good first issue" and "Hacktoberfest" qualify as "Help Wanted" so the label should be added automatically
1 parent b674665 commit b0a15cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/triage-labelled.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,23 @@ jobs:
2929
labels: ['Z-Labs']
3030
})
3131
32+
apply_Help-Wanted_label:
33+
name: Add "Help Wanted" label to all "good first issue" and Hacktoberfest
34+
runs-on: ubuntu-latest
35+
if: >
36+
contains(github.event.issue.labels.*.name, 'good first issue') ||
37+
contains(github.event.issue.labels.*.name, 'Hacktoberfest')
38+
steps:
39+
- uses: actions/github-script@v5
40+
with:
41+
script: |
42+
github.rest.issues.addLabels({
43+
issue_number: context.issue.number,
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
labels: ['Help Wanted']
47+
})
48+
3249
move_needs_info_issues:
3350
name: X-Needs-Info issues to Need info column on triage board
3451
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)