chore: Refactor config_util.py to handle gitlab host input
This commit is contained in:
parent
24bd31288a
commit
14b3197543
@ -38,7 +38,7 @@ def get_repo_type(url):
|
||||
],
|
||||
)
|
||||
radio.render()
|
||||
if radio.selection is not None:
|
||||
if radio.selection is None:
|
||||
return ""
|
||||
|
||||
rtype = [
|
||||
@ -159,11 +159,9 @@ def read_server_access_token_with_input(pr_url):
|
||||
|
||||
def gitlab_host():
|
||||
host = read_gitlab_host()
|
||||
if host:
|
||||
return host
|
||||
|
||||
gitlab_host_editor = TextEditor(
|
||||
"", "Please input your gitlab host(for example: https://www.gitlab.com):"
|
||||
host, "Please input your gitlab host(for example: https://www.gitlab.com):"
|
||||
)
|
||||
gitlab_host_editor.render()
|
||||
host = gitlab_host_editor.new_text
|
||||
|
Loading…
x
Reference in New Issue
Block a user