File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,16 @@ def _validate(self) -> None:
76
76
rich .print (format_command ("export CODEGEN_SECRETS__GITHUB_TOKEN=<your-token>" ))
77
77
rich .print ("Or pass in as a parameter:" )
78
78
rich .print (format_command ("codegen init --token <your-token>" ))
79
- raise click .Abort ()
80
79
81
80
if self .local_git .origin_remote is None :
82
- rich .print ("\n [bold red]Error :[/bold red ] No remote found for repository" )
83
- rich .print ("[white]Please add a remote to the repository. [/white]" )
81
+ rich .print ("\n [bold yellow]Warning :[/bold yellow ] No remote found for repository" )
82
+ rich .print ("[white]To enable full functionality, please add a remote to the repository[/white]" )
84
83
rich .print ("\n [dim]To add a remote to the repository:[/dim]" )
85
84
rich .print (format_command ("git remote add origin <your-repo-url>" ))
86
- raise click .Abort ()
87
85
88
86
try :
89
- Github (login_or_token = git_token ).get_repo (self .local_git .full_name )
87
+ if git_token is not None :
88
+ Github (login_or_token = git_token ).get_repo (self .local_git .full_name )
90
89
except BadCredentialsException :
91
90
rich .print (format_command (f"\n [bold red]Error:[/bold red] Invalid GitHub token={ git_token } for repo={ self .local_git .full_name } " ))
92
91
rich .print ("[white]Please provide a valid GitHub token for this repository.[/white]" )
You can’t perform that action at this time.
0 commit comments