Skip to content

Commit 72708c4

Browse files
authored
Require Semantic Version labels on PR (#1749)
# Motivation In most of our other Swift Server related repos we have introduced a new labelling system that allows us to use the GitHub auto-generated release notes. With those labels the release notes are properly grouped into their SemVer impact. # Modification This PR adds a new pipeline that makes sure each PR has the appropriate label set before it is merged. # Result No more PRs without SemVer classification.
1 parent 035c0c4 commit 72708c4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
7+
jobs:
8+
semver-label-check:
9+
name: Semantic version label check
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 1
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
- name: Check for Semantic Version label
18+
uses: apple/swift-nio/.github/actions/pull_request_semver_label_checker@main

0 commit comments

Comments
 (0)