The "Target branch rules" does not accept uppercase branch name
Summary
Since branch names in git are case-sentive, the Target branch rules are case-sensitive. ( https://gitlab.com/gitlab-org/gitlab/-/issues/429371)
However, when the user inputs "Rule name" that contains uppercase, its name is automatically changed to lowercase.
Steps to reproduce
- Create a Target branch rule that rule name contains the above branch
- Try to create MR from that branch. We can confirm that the rule does not work.
Example Project
https://gitlab.com/kkamiya_gl_premium_group/deploy-test
What is the current bug behavior?
Rule name is automatically changed to lowercase.
What is the expected correct behavior?
Rule name is not changed even the user inputs the name that contains uppercase.
Relevant logs and/or screenshots
screenshot 2023-12-08 12.58.32.mov
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
I confirmed this behavior in GitLab.com
Results of GitLab application Check
Expand for output related to the GitLab application check
I confirmed this behavior in GitLab.com
Possible fixes
Edited by Kosuke Kamiya