From ad0acb1c90c0548583a3a5dfc1346ec00ad3c8a4 Mon Sep 17 00:00:00 2001 From: Marc Littlemore Date: Tue, 23 May 2023 12:21:50 +0100 Subject: [PATCH] chore: add gh workflow to add zenhub label --- .github/workflows/add-zenhub-label.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/add-zenhub-label.yml diff --git a/.github/workflows/add-zenhub-label.yml b/.github/workflows/add-zenhub-label.yml new file mode 100644 index 00000000..84542874 --- /dev/null +++ b/.github/workflows/add-zenhub-label.yml @@ -0,0 +1,24 @@ +# Ensure we add the correct ZenHub label for all new issues +# Avoids problem where checklist issues are not added to the correct ZenHub pipeline + +name: Add ZenHub label to issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["Ecosystem: Frameworks"] + })