diff options
Diffstat (limited to '.github/workflows')
-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" |