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)