Error "Branch name is invalid" without specifying why the branch name is invalid
Summary
(note I've tried to find a similar bug using this search)
On my fork of the gitlab project, I've wanted to create a branch called bmm-gitlab-386509-administration/monitoring/prometheus/web_exporter.md
(mind the trailing space), and it failed reporting an invalid branch name (is it the "/", it is the length of the branch name, is it something else ?)
Steps to reproduce
- create a branch
- define branch a name that is invalid (what makes a branch name invalid, I don't have any idea)
Example Project
can happen on any project I'd say
What is the current bug behavior?
reporting the branch name without specifying why is it invalid.
What is the expected correct behavior?
Provide the reason(s) the branch name is invalid. At least provide a link to the documentation.
But a better user experience would be to display what makes the branch name invalid, especially in my case, it was a trailing space so it can be hardly spot (I've spend 5 minutes on that).
Relevant logs and/or screenshots
Proposal
- Update the error handling to align to Pajamas guidelines to outline the input and error text in red
Current | Updated |
---|---|
Edited by Michael Le