feat: Add conventional commit title derivation for pull requests - #164
Open
Ziinc wants to merge 2 commits into
Open
feat: Add conventional commit title derivation for pull requests#164Ziinc wants to merge 2 commits into
Ziinc wants to merge 2 commits into
Conversation
…aces When a workspace's title or branch name already signals a conventional-commit type (e.g. "feat: ..." or a "fix/..." branch), normalize the PR title created from the workspace into strict type(scope)?: description form so it passes the repo's conventional-commit title check.
Ziinc
force-pushed
the
claude/conventional-commits-pr-titles-394b04
branch
from
August 5, 2026 04:33
82f824b to
e9f0dcd
Compare
The Create PR flow now derives conventional-commit titles from the workspace title/branch, so these tests need to expect the "feat: " prefix that gets added when the branch is "feat/..." but the workspace title has no type prefix yet.
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
This change adds intelligent PR title generation that derives conventional commit format titles from branch names and PR titles, with support for common type aliases and flexible branch naming patterns.
Key Changes
deriveConventionalPrTitle()function that intelligently generates conventional commit-formatted PR titles by:feature→feat,bugfix→fix)type/descriptionortype-descriptionCONVENTIONAL_TYPE_ALIASESthat normalizes common variations:feature→feat,bugfix/hotfix→fixdoc/documentation→docs,performance→perfchore,refactor,test,style,build,ci,revertfix/login-bug→fix: login bugbugfix-login-crash→fix: login crashtreq/bugfix-login-crash→fix: login crashCreatePrButtonGroupto automatically apply conventional title derivation when creating pull requestsImplementation Details
CONVENTIONAL_TITLE_RE) to parse conventional commit formathumanize()helper to convert slug-style text (dashes/underscores) to readable descriptionshttps://claude.ai/code/session_01FrmZ3AmfmpnS48es3e3c13