Branch Template Property
Everduin94 opened this issue ยท comments
Erik Verduin commented
Context
Based on #68 (@groovyghoul)
Today, although each part is optional, the order in the branch name when running better-branch
is fixed.
USER/TYPE/TICKET-DESCRIPTION
Tasks
Create a property branch_template
- Default:
user/type/ticket-description
Zod Validation
- Enforce key words: ["user", "type", "ticket", "description", "version"]
- Enforce separators: ["/", "-", "_"]
Regex
- Update builder to use template
- See #70 make sure to not break inference between these two changes
Add either
- A way to make custom fields / prompts
- Optional version number field (leaning towards this for now)
Outstanding Tasks
- This will effectively make fields like
optional
orseparator
redundant in some cases. Should we deprecate?
github-actions commented
๐ This issue has been resolved in version 1.11.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
Richard O'Neil commented
@Everduin94 I finally got a chance to install and configure. This is working EXACTLY how I want it! Thanks for going above and beyond.