Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ func (c *Client) ParseFromURL(baseRepoURL, repoName string) (RepoInfo, error) {
if err != nil {
return ret, fmt.Errorf("parsing base repo URL: %w", err)
}

repoURL, err := baseURL.Parse(fmt.Sprintf("repos/%s", repoName))
if err != nil {
return ret, fmt.Errorf("parsing repo endpoint: %w", err)
}
repoURL := baseURL.JoinPath(fmt.Sprintf("repos/%s", repoName))

log.Printf("getting repo info from URL: %s", repoURL.String())
//nolint:noctx
Expand Down