Reopen merge request should trigger pipelines for merge request
Summary
Reopen merge request should trigger pipelines for merge request.
Steps to reproduce
- Configure a pipeline for merge requests (https://docs.gitlab.com/ce/ci/merge_request_pipelines/index.html)
- Open a merge request from a branch
- The pipeline for merge request is triggered
- Close the merge request
- Push some commit to the branch
- Reopen the merge request
What is the current bug behavior?
When reopen merge request, the pipeline is not trigged, even there are new commits for the branch.
And users can not trigger the pipeline manually, either.
What is the expected correct behavior?
When reopen merge request, the pipeline for merge request should be trigged (as if the merge request is newly created).
If no commits are updated, the pipeline could not be triggered as an optimization.
A rebuild button could also help. gitlab-ee#311, #65940 (closed)
Creating a new merge request is an acceptable workaround since we have to retype everything (description, labels, milestones, assignee, etc).
Output of checks
This bug happens both on GitLab.com and self-managed gitlab-ce installation.
Edited by Bian Jiaping