From 442672cfdde73f3bd6460032081b7805d736d255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 29 Sep 2021 13:35:09 +0200 Subject: [PATCH] move-mrs-script: add a list only options Part-of: --- scripts/move_mrs_to_monorepo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/move_mrs_to_monorepo.py b/scripts/move_mrs_to_monorepo.py index 379f672a85..19d5934828 100755 --- a/scripts/move_mrs_to_monorepo.py +++ b/scripts/move_mrs_to_monorepo.py @@ -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)