summaryrefslogtreecommitdiff
path: root/.github/workflows/label_pr.yaml
blob: 49c1b109814a81b9dd666b3f76f11d6f9cd7805b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"