Merge pull request #656 from sh7dm/fix-repo-not-found
Don't list remotes when --repo flag is set
This commit is contained in:
commit
e80c2f852d
1 changed files with 5 additions and 0 deletions
|
|
@ -174,6 +174,11 @@ func changelogURL(version string) string {
|
|||
}
|
||||
|
||||
func determineBaseRepo(cmd *cobra.Command, ctx context.Context) (ghrepo.Interface, error) {
|
||||
repo, err := cmd.Flags().GetString("repo")
|
||||
if err == nil && repo != "" {
|
||||
return ghrepo.FromFullName(repo), nil
|
||||
}
|
||||
|
||||
apiClient, err := apiClientForContext(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue