@@ -50,6 +50,7 @@ class CliConfig:
50
50
timeout : Optional [int ] = 1200
51
51
exclude_license_details : bool = False
52
52
include_module_folders : bool = False
53
+ repo_is_public : bool = False
53
54
version : str = __version__
54
55
jira_plugin : PluginConfig = field (default_factory = PluginConfig )
55
56
slack_plugin : PluginConfig = field (default_factory = PluginConfig )
@@ -94,6 +95,7 @@ def from_args(cls, args_list: Optional[List[str]] = None) -> 'CliConfig':
94
95
'timeout' : args .timeout ,
95
96
'exclude_license_details' : args .exclude_license_details ,
96
97
'include_module_folders' : args .include_module_folders ,
98
+ 'repo_is_public' : args .repo_is_public ,
97
99
'version' : __version__
98
100
}
99
101
config_args .update ({
@@ -147,30 +149,32 @@ def create_argument_parser() -> argparse.ArgumentParser:
147
149
required = False
148
150
)
149
151
repo_group .add_argument (
152
+ "--repo-is-public" ,
153
+ dest = "default_branch" ,
154
+ action = "store_true" ,
155
+ help = "If set it will flag a new repository creation as public. Defaults to false."
156
+ )
157
+ repo_group .add_argument (
158
+ "--branch" ,
159
+ metavar = "<name>" ,
160
+ help = "Branch name" ,
161
+ default = ""
162
+ )
163
+
164
+ integration_group = parser .add_argument_group ('Integration' )
165
+ integration_group .add_argument (
150
166
"--integration" ,
151
167
choices = INTEGRATION_TYPES ,
152
168
metavar = "<type>" ,
153
- help = "Integration type" ,
169
+ help = "Integration type of api, github, gitlab, azure, or bitbucket. Defaults to api " ,
154
170
default = "api"
155
171
)
156
- repo_group .add_argument (
172
+ integration_group .add_argument (
157
173
"--owner" ,
158
174
metavar = "<name>" ,
159
175
help = "Name of the integration owner, defaults to the socket organization slug" ,
160
176
required = False
161
177
)
162
- repo_group .add_argument (
163
- "--branch" ,
164
- metavar = "<name>" ,
165
- help = "Branch name" ,
166
- default = ""
167
- )
168
- repo_group .add_argument (
169
- "--committers" ,
170
- metavar = "<name>" ,
171
- help = "Committer(s) to filter by" ,
172
- nargs = "*"
173
- )
174
178
175
179
# Pull Request and Commit info
176
180
pr_group = parser .add_argument_group ('Pull Request and Commit' )
@@ -209,6 +213,12 @@ def create_argument_parser() -> argparse.ArgumentParser:
209
213
dest = "commit_sha" ,
210
214
help = argparse .SUPPRESS
211
215
)
216
+ pr_group .add_argument (
217
+ "--committers" ,
218
+ metavar = "<name>" ,
219
+ help = "Committer for the commit (comma separated)" ,
220
+ nargs = "*"
221
+ )
212
222
213
223
# Path and File options
214
224
path_group = parser .add_argument_group ('Path and File' )
0 commit comments