Repository navigation
ci: enforce conventional commits format for PR titles [skip buildkite] - #7513
Conversation
## The Issue - PR titles currently use a custom format that doesn't align with conventional commits standard - Missing support for optional scopes like feat(pantheon): description - Limited commit types compared to conventional commits specification - Developer documentation doesn't reflect the conventional commits format ## How This Commit Solves The Issue - Updates GitHub workflow regex pattern to support conventional commits with optional scopes - Adds missing commit types: chore, perf, style - Updates developer documentation with conventional commits examples and format - Adds PR title guidelines to CLAUDE.md for AI-assisted development consistency ## Implementation Details - Modified .github/workflows/pr-check.yml regex from custom pattern to conventional commits pattern - Updated docs/content/developers/building-contributing.md with new format, examples, and commit types - Added PR title section to CLAUDE.md with format specification and examples - Added commit message strategy for first commits in PR series to follow PR template structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Remove literal template structure that might be causing Claude Code to include PR template content in commit messages
Remove non-greedy quantifier that was causing validation failures for valid conventional commit titles with scopes containing hyphens
|
Download the artifacts for this pull request:
See Testing a PR. |
|
Can't use the new format until this goes in. |
stasadev
left a comment
There was a problem hiding this comment.
About , fixes #number - the regex doesn't really check for it, I tested these on https://regex101.com/
feat: add feature, Fixes #test
feat: add feature fixes #123
feat: add feature, fixes #
And they all pass.
Co-authored-by: Stanislav Zhuk <[email protected]>
|
Do you think we should check for |
|
I don't think there should be a strict requirement for "fixes". I'm just saying that having it in a regular expression doesn't give us anything, because it's a totally optional match for that. |
|
Feel free to push anything you prefer, thanks! |
20c6ea0 to
a4e831b
Compare
a4e831b to
6f6a22f
Compare
stasadev
left a comment
There was a problem hiding this comment.
I updated OP with a link to regex, so it's easy to check new cases.
And tested everything in:
The Issue
How This Commit Solves The Issue
Implementation Details
🤖 Generated with Claude Code
https://regex101.com/r/9HTbYi/6