Skip to content

ci: enforce Conventional Commit PR titles - #2056

Draft
gabrielfruet wants to merge 1 commit into
masterfrom
conventional-commits-enforce
Draft

ci: enforce Conventional Commit PR titles#2056
gabrielfruet wants to merge 1 commit into
masterfrom
conventional-commits-enforce

Conversation

@gabrielfruet

@gabrielfruet gabrielfruet commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Pull requests are squash-merged, so the PR title is the commit subject that lands on master. This makes that title follow Conventional Commits and adds a CI check that rejects titles that don't match.

First of two PRs. This one only enforces the convention; the release automation that consumes it is the stacked follow-up (#2057).

Changes:

  • lint_pr_title.yml validates the title against the allowed types on every PR, with a merge_group pass-through so the merge queue doesn't stall.
  • .pre-commit-config.yaml gains a commit-msg hook running commitizen locally. Best-effort: squash discards local commit messages, so the CI check is the real gate.
  • CONTRIBUTING.md, CLAUDE.md, and the PR templates document the types and the type→version-bump mapping.

Before making the check required:

  • Set the squash-merge default to "Pull request title", not the first commit.
  • Confirm the merge_group pass-through keeps the queue green.

No history is rewritten; only new PRs are affected.

Squash-merge makes the PR title the commit subject on master, so a CI check validates it. Adds a commit-msg hook and documents the convention.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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