Skip to content

feat: make feature branch prefix configurable#7

Merged
mgreau merged 1 commit intomainfrom
configurable-branch-prefix
Apr 16, 2026
Merged

feat: make feature branch prefix configurable#7
mgreau merged 1 commit intomainfrom
configurable-branch-prefix

Conversation

@mgreau
Copy link
Copy Markdown
Owner

@mgreau mgreau commented Apr 16, 2026

What

Replace hardcoded mgreau/ branch prefix in zen work new with a branch_prefix config field, falling back to git config user.name.

Why

The hardcoded prefix made the tool unusable for anyone other than mgreau. This makes zen portable across users — it auto-detects the prefix from git config, or lets users set it explicitly in ~/.zen/config.yaml.

Notes

Replace hardcoded "mgreau/" branch prefix with branch_prefix config
field. Falls back to git config user.name (with spaces replaced by
hyphens and a 5s timeout), then no prefix.
@mgreau mgreau merged commit a5577b0 into main Apr 16, 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