Improve Merge Train messaging for when a Merge Request fails push rules.
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
When a Merge Request fails the push rules after passing all the Merge train pipelines a generic error message is presented to the user. This message is vague and does not include any details of the failure.
Problem to solve
A customer reported (internal link only) that merge requests were failing on their merge trains with no additional information on the reason for the failure. The only messaging seen for the error was:
An error occurred while merging. Try again.
When looking at the logs for this error, the message indicated that one of the branches of this merge request did not follow the push rules pattern.
Proposal
Change the warning for this use case to
The merge request cannot be merged because the push rules prevent pushing to the repository. Verify the push rules for your project.