@@ -50,6 +50,7 @@ class CliConfig:
5050 timeout : Optional [int ] = 1200
5151 exclude_license_details : bool = False
5252 include_module_folders : bool = False
53+ repo_is_public : bool = False
5354 version : str = __version__
5455 jira_plugin : PluginConfig = field (default_factory = PluginConfig )
5556 slack_plugin : PluginConfig = field (default_factory = PluginConfig )
@@ -94,6 +95,7 @@ def from_args(cls, args_list: Optional[List[str]] = None) -> 'CliConfig':
9495 'timeout' : args .timeout ,
9596 'exclude_license_details' : args .exclude_license_details ,
9697 'include_module_folders' : args .include_module_folders ,
98+ 'repo_is_public' : args .repo_is_public ,
9799 'version' : __version__
98100 }
99101 config_args .update ({
@@ -147,30 +149,32 @@ def create_argument_parser() -> argparse.ArgumentParser:
147149 required = False
148150 )
149151 repo_group .add_argument (
152+ "--repo-is-public" ,
153+ dest = "repo_is_public" ,
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 (
150166 "--integration" ,
151167 choices = INTEGRATION_TYPES ,
152168 metavar = "<type>" ,
153- help = "Integration type" ,
169+ help = "Integration type of api, github, gitlab, azure, or bitbucket. Defaults to api " ,
154170 default = "api"
155171 )
156- repo_group .add_argument (
172+ integration_group .add_argument (
157173 "--owner" ,
158174 metavar = "<name>" ,
159175 help = "Name of the integration owner, defaults to the socket organization slug" ,
160176 required = False
161177 )
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- )
174178
175179 # Pull Request and Commit info
176180 pr_group = parser .add_argument_group ('Pull Request and Commit' )
@@ -209,6 +213,12 @@ def create_argument_parser() -> argparse.ArgumentParser:
209213 dest = "commit_sha" ,
210214 help = argparse .SUPPRESS
211215 )
216+ pr_group .add_argument (
217+ "--committers" ,
218+ metavar = "<name>" ,
219+ help = "Committer for the commit (comma separated)" ,
220+ nargs = "*"
221+ )
212222
213223 # Path and File options
214224 path_group = parser .add_argument_group ('Path and File' )
0 commit comments