diff options
Diffstat (limited to 'app/models/merge_request/pipelines.rb')
-rw-r--r-- | app/models/merge_request/pipelines.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/merge_request/pipelines.rb b/app/models/merge_request/pipelines.rb index c32f29a9304..72756e8e9d0 100644 --- a/app/models/merge_request/pipelines.rb +++ b/app/models/merge_request/pipelines.rb @@ -61,6 +61,8 @@ class MergeRequest::Pipelines pipelines.joins(shas_table) end + # NOTE: this method returns only parent merge request pipelines. + # Child merge request pipelines have a different source. def triggered_by_merge_request source_project.ci_pipelines .where(source: :merge_request_event, merge_request: merge_request) |