From e9af260dd3a79d5ebcaaee63f98e732d020d7535 Mon Sep 17 00:00:00 2001 From: ndr_brt Date: Tue, 5 Mar 2024 11:03:04 +0100 Subject: [PATCH] build: add triage opened issue workflow --- .github/workflows/triage-issue.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/triage-issue.yml diff --git a/.github/workflows/triage-issue.yml b/.github/workflows/triage-issue.yml new file mode 100644 index 000000000..aec1c09b1 --- /dev/null +++ b/.github/workflows/triage-issue.yml @@ -0,0 +1,20 @@ +name: triage opened issue + +on: + issues: + types: + - reopened + - opened + +jobs: + label-issue: + 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