diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-12-12 00:00:11 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-12-13 18:36:52 +0300 |
commit | 504f77b43a92362b07899e946855dc689b45b3ae (patch) | |
tree | ad394ad0c53b3b3283a375a16e8097b543543f72 /app/services | |
parent | 0cdc840b7fd710e58130a06e94d508c7c8cb133b (diff) |
Prevent worker that updates merge requests head pipeline from failing jobs
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 |