Skip to content

Commit 981a075

Browse files
authored
ci: check that PR has changelog label (#310)
1 parent 0864122 commit 981a075

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/changelog.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Ensure labels"
2+
on: # yamllint disable-line rule:truthy
3+
pull_request:
4+
types:
5+
- labeled
6+
- unlabeled
7+
- opened
8+
- synchronize
9+
- reopened
10+
11+
jobs:
12+
changelog:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check changelog labels
16+
if: false == contains(join(github.event.pull_request.labels.*.name, ','), 'changelog/')
17+
run: |-
18+
echo "::error Add 'changelog/*' label";
19+
exit 1;
20+
- name: OK
21+
run: echo "Thank you!"

0 commit comments

Comments
 (0)