-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (26 loc) · 1.05 KB
/
pr-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Check if PR has required labels
on:
pull_request:
branches: [main]
types: [opened, reopened, labeled, unlabeled, synchronize]
# pull_request_target:
# types: [opened, reopened, labeled, unlabeled, synchronize]
jobs:
check-for-pr-label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "major, minor, patch, non-release"
add_comment: true
message: |
Before this PR can be merged, add one of the following labels:
* `major`<br/>This PR will include a major update (non-backwards compatible changes to the data models)<br/><br/>
* `minor`<br/>This PR will include a minor update (changes that extend on the current data models)<br/><br/>
* `patch`<br/>This PR will include a patch update (small fixes like bugs, typos, etc.)<br/><br/>
* `non-release`<br/>This PR is not related to the data models