Improve branch name error message
Problem to solve
As a developer, when my branch name does not match the specified regular expression, I would like the attempted branch name in the error message so I can quickly resolve my errors.
Intended users
- Delaney (Development Team Lead)
- Sasha (Software Developer)
- Devon (DevOps Engineer)
- Sidney (Systems Administrator)
- Rachel (Release Manager)
- Simone (Software Engineer in Test)
User experience goal
The user should be able to quickly resolve branch name errors.
Proposal
When a branch name does not conform to the specified regular expression, include the attempted branch name in the error message.
Example error message for a cherry-picked branch name:
Branch name (
feat/X~ te$t !*
) does not follow the pattern '^((feature|personal)(-[a-z0-9]+){2,}|development|(cherry-pick-[a-z0-9]+))$'