ci: validate PR title against Conventional Commits#1681
Merged
Conversation
PRs are squash-merged, so the PR title becomes the subject line of the squashed commit on master. commitlint only validates individual commits in the PR, leaving the PR title (and therefore the resulting release- tool-visible commit) unenforced. Add a pr-title job that runs amannn/action-semantic-pull-request on pull_request events to validate the title against Conventional Commits.
bdraco
approved these changes
May 16, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1681 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 33 33
Lines 3401 3401
Branches 461 461
=======================================
Hits 3393 3393
Misses 5 5
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PRs in this repo are squash-merged, which means the PR title becomes the subject line of the squashed commit on
master. The existingcommitlintjob only validates the commits inside the PR, leaving the PR title — and therefore the actual commit that ends up onmasterand drivespython-semantic-release— unchecked.Add a
pr-titlejob that runsamannn/action-semantic-pull-requestonpull_requestevents to lint the title against Conventional Commits, so the squashed commit stays release-tool-friendly even when individual commits inside the PR don't.Fixes #1680
Changes
pr-titlejob in.github/workflows/ci.yml, gated ongithub.event_name == 'pull_request', using a SHA-pinnedamannn/action-semantic-pull-request@v6.1.1.Test plan
ci: validate PR title …) exercises the new check and should pass.update CI) should turn theLint PR Titlecheck red; restoring aci:/fix:/feat:prefix should turn it green again.Generated by Kōan /fix
Quality Report
Changes: 1 file changed, 14 insertions(+)
Code scan: clean
Tests: failed (FAILED)
Branch hygiene: clean
Generated by Kōan post-mission quality pipeline