Merge Requests: "Merge when pipeline succeeds" button does nothing if clicked AFTER pipeline has already succeeded
Summary
"Merge when pipeline succeeds" does nothing if clicked AFTER pipeline has already succeeded.
Steps to reproduce
- Create an MR with a pipeline.
- Click "Merge when pipeline succeeds" the moment AFTER pipeline has already succeeded, but GitLab hasn't updated the MR view yet.
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)
What is the current bug behavior?
(What actually happens)
What is the expected correct behavior?
If "Merge when pipeline succeeds" is executed AFTER pipeline has already succeeded, it should be equivalent of clicking "Merge" button.
Results of GitLab environment info
GitLab Enterprise Edition 12.2.4-ee
Everything else irrelevant.
Results of GitLab application Check
Irrelevant.