Skip to content

Add configurable branch name template - #6

Merged
niborg merged 1 commit into
mainfrom
configurable-branch-names
Feb 4, 2026
Merged

niborg merged 1 commit into
mainfrom
configurable-branch-names

Conversation

@niborg

@niborg niborg commented Feb 4, 2026

Copy link
Copy Markdown
Owner

Adds a new 'repo.branch_name' config option that allows customizing the branch name template.

Changes

  • Add repo section to config.yaml fixtures with branch_name key
  • Add repo to default_hash in config.rb
  • Add branch_name method to Repo module using Utils.prompt_sub
  • Update all hardcoded branch name usages to use Repo.branch_name
  • Add tests for the new functionality

Usage

Add to your .wralph/config.yaml:

Default template is "issue-#{identifier}" which maintains backward compatibility.

Adds a new 'repo.branch_name' config option that allows customizing the
branch name template. The template uses #{identifier} as a placeholder
for the issue number.

Default: issue-#{identifier}

Changes:
- Add repo section to config.yaml fixtures with branch_name key
- Add repo to default_hash in config.rb
- Add branch_name method to Repo module using Utils.prompt_sub
- Update all hardcoded branch name usages to use Repo.branch_name
- Add tests for the new functionality
@niborg
niborg merged commit 88b2a63 into main Feb 4, 2026
1 check passed
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