Skip to content

[feat] Add branch creation CLI and PR branch-name validation #5

Description

@ThreeLight2000

Motivation

Provide a product-neutral branch naming workflow that creates valid branch names before work begins and catches custom branch creation paths before merge.

Scope

  • Add a CLI command for feat, fix, refactor, docs, and chore branches.
  • Document the command and naming contract in AGENTS.md and CONTRIBUTING.md.
  • Add a GitHub Actions check for pull request source branch names.

Acceptance criteria

  • The CLI creates branches matching /-.
  • Invalid types, issue numbers, and slugs fail before branch creation.
  • The pull request check fails for invalid source branch names.
  • Existing branch creation paths remain possible but cannot merge without a passing check.

Verification plan

  • Run CLI success and failure cases.
  • Run the repository verification command.
  • Validate the workflow syntax and regex.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions