From a3659d864cacaf120d41c1289c921a7da7a61e60 Mon Sep 17 00:00:00 2001 From: Kat Gerasimova Date: Mon, 31 Oct 2022 12:21:58 +0000 Subject: [PATCH] Add issue automation to tidy Help Wanted (#23644) All "good first issue" and "Hacktoberfest" qualify as "Help Wanted" so the label should be added automatically --- .github/workflows/triage-labelled.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/triage-labelled.yml b/.github/workflows/triage-labelled.yml index bd28dbcfe..4258ab552 100644 --- a/.github/workflows/triage-labelled.yml +++ b/.github/workflows/triage-labelled.yml @@ -30,6 +30,23 @@ jobs: labels: ['Z-Labs'] }) + apply_Help-Wanted_label: + name: Add "Help Wanted" label to all "good first issue" and Hacktoberfest + runs-on: ubuntu-latest + if: > + contains(github.event.issue.labels.*.name, 'good first issue') || + contains(github.event.issue.labels.*.name, 'Hacktoberfest') + steps: + - uses: actions/github-script@v5 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['Help Wanted'] + }) + move_needs_info_issues: name: X-Needs-Info issues to Need info column on triage board runs-on: ubuntu-latest