From b78fb2ba57928ec1b070580a4087c202c8f405d4 Mon Sep 17 00:00:00 2001 From: Rafael Padilha Date: Fri, 26 Jan 2024 17:34:22 +0000 Subject: [PATCH] Add action to label newly opened/reopned issues as triage --- .github/workflows/triage-issues.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/triage-issues.yml diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml new file mode 100644 index 00000000..700d08eb --- /dev/null +++ b/.github/workflows/triage-issues.yml @@ -0,0 +1,18 @@ +name: Label new/reopened 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