diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-28 13:13:32 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-29 16:12:49 +0300 |
commit | a49e9949c6bc474c8bfd4016d9c6c3b59776772f (patch) | |
tree | fd8efa2f374885a1c12c7eb0e2c0224de3727a24 /app/services/merge_requests/base_service.rb | |
parent | b8f9949a70005978e83a3aaffbe0836c75d24b74 (diff) |
Rename `MergeRequest#pipeline` to `head_pipeline`
Diffstat (limited to 'app/services/merge_requests/base_service.rb')
-rw-r--r-- | app/services/merge_requests/base_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/merge_requests/base_service.rb b/app/services/merge_requests/base_service.rb index 58f69a41e14..800fd39c424 100644 --- a/app/services/merge_requests/base_service.rb +++ b/app/services/merge_requests/base_service.rb @@ -55,7 +55,7 @@ module MergeRequests def pipeline_merge_requests(pipeline) merge_requests_for(pipeline.ref).each do |merge_request| - next unless pipeline == merge_request.pipeline + next unless pipeline == merge_request.head_pipeline yield merge_request end @@ -63,7 +63,7 @@ module MergeRequests def commit_status_merge_requests(commit_status) merge_requests_for(commit_status.ref).each do |merge_request| - pipeline = merge_request.pipeline + pipeline = merge_request.head_pipeline next unless pipeline next unless pipeline.sha == commit_status.sha |