Skip to content

Commit f6f5001

Browse files
authored
Merge pull request #249 from ISISComputingGroup/plz_add_labels_to_prs
Enforce adding release-note labels to PRs
2 parents a422efa + 93cb24a commit f6f5001

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check PR has release labels
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- labeled
9+
- unlabeled
10+
11+
jobs:
12+
has_label:
13+
name: Check PR has release labels
14+
runs-on: ubuntu-latest
15+
steps:
16+
- run: |
17+
echo "PR does not have a release label."
18+
exit 1
19+
if: |
20+
!contains(github.event.pull_request.labels.*.name, 'bluesky-bug') &&
21+
!contains(github.event.pull_request.labels.*.name, 'bluesky-Semver-Major') &&
22+
!contains(github.event.pull_request.labels.*.name, 'bluesky-Semver-Minor') &&
23+
!contains(github.event.pull_request.labels.*.name, 'bluesky-documentation') &&
24+
!contains(github.event.pull_request.labels.*.name, 'bluesky-ignore-for-release')

0 commit comments

Comments
 (0)