Skip to content

Commit 26f552a

Browse files
authored
Fixed unsupported protocol scheme error (#27)
1 parent 7467e09 commit 26f552a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go-libs/github/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (c *GitHubClient) ListRepositories(ctx context.Context, org string) (Reposi
7474
}
7575

7676
func (c *GitHubClient) ListRuns(ctx context.Context, org, repo, workflow string) ([]workflowRun, error) {
77-
path := fmt.Sprintf("/repos/%s/%s/actions/workflows/%v.yml/runs", org, repo, workflow)
77+
path := fmt.Sprintf("%s/repos/%s/%s/actions/workflows/%v.yml/runs", gitHubAPI, org, repo, workflow)
7878
var response struct {
7979
TotalCount *int `json:"total_count,omitempty"`
8080
WorkflowRuns []workflowRun `json:"workflow_runs,omitempty"`
@@ -84,7 +84,7 @@ func (c *GitHubClient) ListRuns(ctx context.Context, org, repo, workflow string)
8484
}
8585

8686
func (c *GitHubClient) CompareCommits(ctx context.Context, org, repo, base, head string) ([]RepositoryCommit, error) {
87-
path := fmt.Sprintf("/repos/%v/%v/compare/%v...%v", org, repo, base, head)
87+
path := fmt.Sprintf("%s/repos/%v/%v/compare/%v...%v", gitHubAPI, org, repo, base, head)
8888
var response struct {
8989
Commits []RepositoryCommit `json:"commits,omitempty"`
9090
}

0 commit comments

Comments
 (0)