mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
move-mrs-script: add a list only options
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/960>
This commit is contained in:
parent
1cfae69bc9
commit
442672cfdd
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,7 @@ PARSER.add_argument("--skip-on-failure", action="store_true", default=False)
|
|||
PARSER.add_argument("--dry-run", "-n", action="store_true", default=False)
|
||||
PARSER.add_argument("--use-branch-if-exists",
|
||||
action="store_true", default=False)
|
||||
PARSER.add_argument("--list-mrs-only", action="store_true", default=False)
|
||||
PARSER.add_argument(
|
||||
"-c",
|
||||
"--config-file",
|
||||
|
@ -572,6 +573,9 @@ class GstMRMover:
|
|||
failed_mrs.append(
|
||||
f"{URL}{from_project.path_with_namespace}/merge_requests/{mr.iid}")
|
||||
continue
|
||||
if self.list_mrs_only:
|
||||
fprint("\n"f"List only: {yellow('SKIPPED')}\n")
|
||||
continue
|
||||
|
||||
with nested(f'{bold(from_project.path_with_namespace)}: {mr.iid}'):
|
||||
new_mr = self.recreate_mr(from_project, to_project, mr)
|
||||
|
|
Loading…
Reference in a new issue