Skip to content
Snippets Groups Projects
Commit 013d590e authored by Bryan R's avatar Bryan R
Browse files

Merge branch 'wip/only-check-mr-pipelines' into 'wip/flake'

Only check MR pipelines

See merge request !1
parents ef34ab59 44f3e2b5
No related branches found
No related tags found
1 merge request!1Only check MR pipelines
......@@ -36,6 +36,7 @@ class Pipeline(gitlab.Resource):
cls, project_id, sha, api, *,
ref=None,
status=None,
source='merge_request_event',
order_by='id',
sort='desc',
):
......@@ -46,6 +47,8 @@ class Pipeline(gitlab.Resource):
}
if status is not None:
params['status'] = status
if source is not None:
params['source'] = source
pipelines_info = api.call(GET(
'/projects/{project_id}/pipelines'.format(project_id=project_id),
params,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment