Resolving a merge conflict with restrictions on commit names shows generic error
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary: When a repository have a restriction on commit names, resolving a merge conflict without respecting this restriction leads to a generic "An error occurred" error.
How to reproduce:
- Define a commit name restriction
- Create a merge request
- Create a merge conflict on the target branch
- Try to resolve the conflict via the MR page, without respecting the restriction
What happens: A generic "An error occurred" error is displayed
What should happen: A more detailed error like "The commit does not match the regex" (like displayed when pushing) should be displayed
Instance details: Self-hosted v18.3.1-ee
Edited by 🤖 GitLab Bot 🤖