@@ -74,7 +74,7 @@ func (c *GitHubClient) ListRepositories(ctx context.Context, org string) (Reposi
7474}
7575
7676func (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
8686func (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