From f5d6af9cfc0c0d04af5183984bd9ab6980278e25 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Thu, 11 Jan 2024 13:19:25 -0500 Subject: Add a workflow to auto-label new PRs with team:viewer. When a PR appears on the QA board, QA wants to know whose team it came from. So every PR on the viewer repo should be labeled with team:viewer. --- .github/workflows/label_pr.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/label_pr.yaml (limited to '.github/workflows') diff --git a/.github/workflows/label_pr.yaml b/.github/workflows/label_pr.yaml new file mode 100644 index 0000000000..49c1b10981 --- /dev/null +++ b/.github/workflows/label_pr.yaml @@ -0,0 +1,17 @@ +name: Label PR with team:viewer when first opened +on: + pull_request: + types: + - opened +jobs: + label_pr: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh pr edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + LABELS: "team:viewer" -- cgit v1.2.3