From 0f73f3e58e22e990024e6c7e8c90950ddb7d1b52 Mon Sep 17 00:00:00 2001 From: Shauna Gordon-McKeon Date: Thu, 31 Oct 2024 11:37:17 -0400 Subject: [PATCH] Add workflow to automatically give 'triage' label to new and reopened issues --- .github/workflows/ADD_LABELS.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ADD_LABELS.yml diff --git a/.github/workflows/ADD_LABELS.yml b/.github/workflows/ADD_LABELS.yml new file mode 100644 index 0000000..d5f99f0 --- /dev/null +++ b/.github/workflows/ADD_LABELS.yml @@ -0,0 +1,18 @@ +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh issue edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: triage