Skip to content

Commit dd1555b

Browse files
authored
fix(trstringer#75): display corect base URL if using GHE (trstringer#90)
It was displaying the GH URL even though the GHE was configured, using the client.baseURL will correctly display a correct value. https://pkg.go.dev/github.com/google/go-github/v50/github#Client
1 parent a824dad commit dd1555b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

approval.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func newApprovalEnvironment(client *github.Client, repoFullName, repoOwner strin
4444
}
4545

4646
func (a approvalEnvironment) runURL() string {
47-
return fmt.Sprintf("https://github.com/%s/actions/runs/%d", a.repoFullName, a.runID)
47+
return fmt.Sprintf("%s%s/actions/runs/%d", a.client.BaseURL.String(), a.repoFullName, a.runID)
4848
}
4949

5050
func (a *approvalEnvironment) createApprovalIssue(ctx context.Context) error {

0 commit comments

Comments
 (0)