Skip to content

Pull Request Labels #1425

Pull Request Labels

Pull Request Labels #1425

Workflow file for this run

name: Pull Request Labels
on:
pull_request_review:
types: [submitted]
pull_request:
types: [labeled, unlabeled]
jobs:
check-labels:
if: github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- name: Check for Pull Request Labels
shell: bash
run: |
bin/check_labels "$(gh pr view --json labels ${{ github.event.pull_request.number }})"