diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2024-01-11 13:19:25 -0500 | 
|---|---|---|
| committer | nat-goodspeed <nat@lindenlab.com> | 2024-01-12 17:26:46 -0500 | 
| commit | f5d6af9cfc0c0d04af5183984bd9ab6980278e25 (patch) | |
| tree | ca7f752553023d754d49cf8ea1201ff5d3a90c45 | |
| parent | 77395eddc911e0801e50fd693f7bbaee8046aa95 (diff) | |
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.
| -rw-r--r-- | .github/workflows/label_pr.yaml | 17 | 
1 files changed, 17 insertions, 0 deletions
| 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" | 
