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