diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..e09863d0 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,25 @@ +name: Require Pull Request Labels +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] +jobs: + label: + # Only run if PR is not from a fork + if: github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: mheap/github-action-required-labels@v5 + with: + mode: minimum + count: 1 + labels: | + Docs:User + Docs:Admin + Docs:Developer + Docs:Breaking-Change + Docs:Build&Tools + Docs:Guides + add_comment: true