We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b79305 commit 0f73794Copy full SHA for 0f73794
github2gitlab/main.py
@@ -130,6 +130,9 @@ def get_parser():
130
parser.add_argument('--ignore-closed', action='store_const',
131
const=True,
132
help='ignore pull requests closed and not merged')
133
+ parser.add_argument('--skip-add-key', action='store_const',
134
+ const=True,
135
+ help='do not attempt to add local SSH key to Gitlab')
136
parser.add_argument('--skip-pull-requests', action='store_const',
137
138
help='do not mirror PR to MR')
@@ -152,7 +155,8 @@ def factory(argv):
152
155
return GitHub2GitLab(GitHub2GitLab.get_parser().parse_args(argv))
153
156
154
157
def run(self):
- self.add_key()
158
+ if not self.args.skip_add_key:
159
+ self.add_key()
160
if self.add_project():
161
self.unprotect_branches()
162
self.git_mirror()
0 commit comments