File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ def get_parser():
130
130
parser .add_argument ('--ignore-closed' , action = 'store_const' ,
131
131
const = True ,
132
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' )
133
136
parser .add_argument ('--skip-pull-requests' , action = 'store_const' ,
134
137
const = True ,
135
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 ):
155
- self .add_key ()
158
+ if not self .args .skip_add_key :
159
+ self .add_key ()
156
160
if self .add_project ():
157
161
self .unprotect_branches ()
158
162
self .git_mirror ()
You can’t perform that action at this time.
0 commit comments