From 9d9bb27e045afca6e4fbba151bb77bcc6b1957b8 Mon Sep 17 00:00:00 2001 From: Bruno Schaatsbergen Date: Fri, 1 Dec 2023 00:07:39 +0100 Subject: [PATCH] feat: creat a triage workflow --- .github/workflows/triage.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/triage.yaml diff --git a/.github/workflows/triage.yaml b/.github/workflows/triage.yaml new file mode 100644 index 0000000..bf96abb --- /dev/null +++ b/.github/workflows/triage.yaml @@ -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: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: needs-triage