Repository navigation
ci(repo): enforce single-line Conventional Commits on pull requests - #47
Merged
Merged
Conversation
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.
What this adds
.github/workflows/commit-lint.yml— jobConventional commit subjectson every PR (ubuntu-latest).scripts/check-commit-messages.py— rejects non-Conventional subjects and any commit with a body; exit 1 = violation, exit 2 = the check could not run..github/rulesets/—main.json(applied live as ruleset 26587443) plus README recording thatcommit_message_pattern/branch_name_pattern/max_file_sizereturn 422 on this plan, so commit style moved to CI instead.macos-tests.ymlno longer filters bypaths:, so the required Swift check exists on every PR (docs-only PRs would otherwise hang on "Expected — waiting").Verification done locally
HEAD~20..HEADon this repo: 20/20 pass.What this PR also proves
It only touches
.github/andscripts/, so if the ruleset and the un-filtered Swift workflow work together,Swift unit tests (macOS)must appear here and go green,Conventional commit subjectsmust go green, and the merge button should be blocked until then.No app or site code changes.