Skip to content

feat(commit-commands): support Conventional Branch naming in /commit-push-pr#74722

Open
k0mpreni wants to merge 1 commit into
anthropics:mainfrom
k0mpreni:feature/add-conventional-branch-naming
Open

feat(commit-commands): support Conventional Branch naming in /commit-push-pr#74722
k0mpreni wants to merge 1 commit into
anthropics:mainfrom
k0mpreni:feature/add-conventional-branch-naming

Conversation

@k0mpreni

@k0mpreni k0mpreni commented Jul 6, 2026

Copy link
Copy Markdown

Summary

  • Adds an optional conventional argument to /commit-push-pr that names the new branch per the Conventional Branch 1.0.0 spec: <type>/<description> with type (feature, bugfix, hotfix, release, chore, docs, test) inferred from the diff.
  • Default behavior (/commit-push-pr with no args) is unchanged — still <custom-prefix>/<generated-name>.
  • Updates the plugin README with usage, an example, and the description-formatting rules (lowercase, hyphen-separated, alphanumeric + hyphens only, no consecutive/trailing hyphens).

Test plan

  • Run /commit-push-pr on a branch off main with staged changes — branch name matches previous default behavior.
  • Run /commit-push-pr conventional on a bug fix — branch is named bugfix/<slug>.
  • Run /commit-push-pr conventional on a new feature — branch is named feature/<slug>.
  • Run /commit-push-pr conventional on a docs-only or chore change — branch is named docs/<slug> or chore/<slug> respectively.
  • Verify slugs contain only lowercase alphanumerics and single hyphens, with no trailing hyphen.

🤖 Generated with Claude Code

Add an optional `conventional` argument to `/commit-push-pr` that names
the new branch per https://conventionalbranch.org/ (`<type>/<description>`,
with type inferred from the diff). Default behavior is unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

2 participants