Error message not helpful when branch creation fails due to push rule
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=324132) </details> <!--IssueSummary end--> <!-- What is the problem and solution you're proposing? This content sets the overall vision for the feature and serves as the release notes that will populate in various places, including the [release post blog](https://about.gitlab.com/releases/categories/releases/) and [Gitlab project releases](https://gitlab.com/gitlab-org/gitlab/-/releases). " --> ### Problem to solve <!-- What problem do we solve? Try to define the who/what/why of the opportunity as a user story. For example, "As a (who), I want (what), so I can (why/value)." --> Currently, when a push rule is established on a project and someone creates a branch that fails that rule, the error message says "Failed to create merge request. Please Try Again" This message is unclear on why it failed. ### Proposal <!-- How are we going to solve the problem? Try to include the user journey! https://about.gitlab.com/handbook/journeys/#user-journey --> Update the error message when a push rule prevents branch creation to something like: - "Failed to create branch. Does not follow push rule guidance." - "Failed to create merge request. Does not follow push rule guidance." ### Further details <!-- Include use cases, benefits, goals, or any other details that will help us understand the problem better. --> ![image](/uploads/a438bba183d8f23158efe32532fbb7d2/image.png) ### Links / references <!-- Label reminders - you should have one of each of the following labels. Use the following resources to find the appropriate labels: - https://gitlab.com/gitlab-org/gitlab/-/labels - https://about.gitlab.com/handbook/product/categories/features/ -->
issue