MR mergeable when .gitlab-ci.yml file is invalid and no pipeline ran
Summary
When the .gitlab-ci.yml
file is invalid but a prior pipeline passed, the MR is still mergeable
Steps to reproduce
- Push a change to a branch
- Wait that pipeline finishes
- Modify
.gitlab-ci.yml
and make it invalid (optionally introduce other breaking changes for the project) - Push to update the MR
- Pipeline fails due to invalid
.gitlab-ci.yml
- Merge button is still enabled
Example Project
n/a
What is the current bug behavior?
The merge button is enabled.
What is the expected correct behavior?
The merge button should be disabled.
Relevant logs and/or screenshots
Output of checks
n/a - I have no admin role
Results of GitLab environment info
n/a - I have no admin role
GitLab Enterprise Edition 9.3.10-ee 0bc6379
Results of GitLab application Check
n/a - I have no admin role