-
Notifications
You must be signed in to change notification settings - Fork 263
28 lines (26 loc) · 1.36 KB
/
label_checker.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
28
name: PR label checking (major/minor/patch, enhancement, etc)
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Labels not added (patch, minor, major, dependencies)
if: >
contains(github.event.pull_request.labels.*.name, 'patch') == false &&
contains(github.event.pull_request.labels.*.name, 'minor') == false &&
contains(github.event.pull_request.labels.*.name, 'major') == false &&
contains(github.event.pull_request.labels.*.name, 'dependencies') == false
run: exit 1
- name: Labels not added (enhancement,bug,test,deprecation,dependencies,documentation,deprecation)
if: >
contains(github.event.pull_request.labels.*.name, 'enhancement') == false &&
contains(github.event.pull_request.labels.*.name, 'bug') == false &&
contains(github.event.pull_request.labels.*.name, 'test') == false &&
contains(github.event.pull_request.labels.*.name, 'deprecation') == false &&
contains(github.event.pull_request.labels.*.name, 'dependencies') == false &&
contains(github.event.pull_request.labels.*.name, 'documentation') == false &&
contains(github.event.pull_request.labels.*.name, 'deprecation') == false
run: exit 1