Commit 8b5fd9c3 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: filter MRs to avoid no ready to be reviewed MRs

parent e1db3dc1c679
......@@ -18,6 +18,15 @@ for project in all_core_projects:
if mr_object.state != "opened":
continue
if "Need Revision" in mr_object.labels:
continue
if "Waiting" in mr_object.labels:
continue
if mr_object.title.startswith("WIP:"):
continue
merge_request = mr_object.attributes
pipelines = mr_object.pipelines()
merge_request["pipeline"] = pipelines[0] if pipelines else None
......@@ -39,6 +48,15 @@ for cube in all_cubes:
if mr_object.state != "opened":
continue
if "Need Revision" in mr_object.labels:
continue
if "Waiting" in mr_object.labels:
continue
if mr_object.title.startswith("WIP:"):
continue
merge_request = mr_object.attributes
pipelines = mr_object.pipelines()
merge_request["pipeline"] = pipelines[0] if pipelines else None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment