Require release related label on PRs against main branch.

This commit is contained in:
Jeremy Wood 2023-02-19 15:17:12 -05:00
parent 871ba16b67
commit 5b991f44e2
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B
1 changed files with 18 additions and 0 deletions

18
.github/workflows/require_label.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Require PR Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
branches: [main]
jobs:
require_label:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 1
labels: "Release: Major, Release: Minor, Release: Patch, No release"