diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-12-13 19:45:48 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-12-13 19:45:48 +0300 |
commit | 013e681625ada14ba977c5a66ab104924a9fdce6 (patch) | |
tree | 6c2b0c51a4c3e1e52d00e3f3e427e81837cf1339 /app/services | |
parent | 87f7309c5deaa0f329f4bdf7da46f53ad2313861 (diff) | |
parent | 504f77b43a92362b07899e946855dc689b45b3ae (diff) |
Merge branch 'issue_41021' into 'master'
Prevent worker that updates merge requests head pipeline from failing jobs
Closes #41021
See merge request gitlab-org/gitlab-ce!15870
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb index 85db2760e23..c8b112132b3 100644 --- a/app/services/ci/create_pipeline_service.rb +++ b/app/services/ci/create_pipeline_service.rb @@ -81,7 +81,7 @@ module Ci end def related_merge_requests - MergeRequest.where(source_project: pipeline.project, source_branch: pipeline.ref) + MergeRequest.opened.where(source_project: pipeline.project, source_branch: pipeline.ref) end end end |