Skip to content

ci(repo): enforce single-line Conventional Commits on pull requests - #47

Merged
ahauy merged 3 commits into
mainfrom
feat/web-i18n-ux-refactor
Nov 5, 2026
Merged

ahauy merged 3 commits into
mainfrom
feat/web-i18n-ux-refactor

Conversation

@ahauy

@ahauy ahauy commented Nov 5, 2026

Copy link
Copy Markdown
Owner

What this adds

  • .github/workflows/commit-lint.yml — job Conventional commit subjects on 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 that commit_message_pattern / branch_name_pattern / max_file_size return 422 on this plan, so commit style moved to CI instead.
  • macos-tests.yml no longer filters by paths:, so the required Swift check exists on every PR (docs-only PRs would otherwise hang on "Expected — waiting").

Verification done locally

  • HEAD~20..HEAD on this repo: 20/20 pass.
  • Throwaway repo with one good subject, one missing type, one with a body: reports exactly the two offenders, exit 1.
  • Bad revision: clean message, exit 2 (no traceback).

What this PR also proves

It only touches .github/ and scripts/, so if the ruleset and the un-filtered Swift workflow work together, Swift unit tests (macOS) must appear here and go green, Conventional commit subjects must go green, and the merge button should be blocked until then.

No app or site code changes.

@ahauy
ahauy merged commit 432b64b into main Nov 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant