Skip to content

Commit

Permalink
Require Semantic Version labels on PR (#1749)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
FranzBusch authored Jan 24, 2025
1 parent 035c0c4 commit 72708c4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pull_request_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR label

on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]

jobs:
semver-label-check:
name: Semantic version label check
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check for Semantic Version label
uses: apple/swift-nio/.github/actions/pull_request_semver_label_checker@main

0 comments on commit 72708c4

Please sign in to comment.