From 0f5255e3b9529b18794047524e101c59a260ac39 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Fri, 1 May 2026 19:26:39 -0700 Subject: [PATCH] ci: add triage automation workflow Adds a workflow that applies the new `needs-triage` label to PRs on creation, so they show up in the org-level Triage project board. --- .github/workflows/triage.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..63755145 --- /dev/null +++ b/.github/workflows/triage.yaml @@ -0,0 +1,21 @@ +name: Triage automation + +on: + pull_request_target: + types: [opened] + +permissions: + pull-requests: write + +jobs: + add-needs-triage: + runs-on: ubuntu-latest + steps: + - name: Add needs-triage label + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + run: | + gh api -X POST "repos/$REPO/issues/$NUMBER/labels" \ + -f 'labels[]=needs-triage'