I noticed when writing some of the code for tag-and-realse that we don't support creating a GitHub client when the repo specified is not a URL. This can be seen here:
|
var ghClient GitHubClient |
|
if isURL(cfg.Repo) { |
|
// repo is a URL |
|
languageRepo, err := github.ParseURL(cfg.Repo) |
|
if err != nil { |
|
return nil, fmt.Errorf("failed to parse repo url: %w", err) |
|
} |
|
ghClient, err = github.NewClient(cfg.GitHubToken, languageRepo) |
|
if err != nil { |
|
return nil, fmt.Errorf("failed to create GitHub client: %w", err) |
|
} |
|
} |
We should make an attempt at reading the local remotes perhaps.
I noticed when writing some of the code for
tag-and-realsethat we don't support creating a GitHub client when the repo specified is not a URL. This can be seen here:librarian/internal/librarian/generate.go
Lines 120 to 131 in 5a70ec1
We should make an attempt at reading the local remotes perhaps.