Skip to content

Commit 080e498

Browse files
committed
Fix hardcoded API host
1 parent 0d6d026 commit 080e498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/github/issues.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ func AddSubIssue(getClient GetClientFn, t translations.TranslationHelperFunc) (t
223223
return nil, fmt.Errorf("failed to marshal request body: %w", err)
224224
}
225225

226-
url := fmt.Sprintf("https://api.github.com/repos/%s/%s/issues/%d/sub_issues", owner, repo, issueNumber)
226+
url := fmt.Sprintf("%srepos/%s/%s/issues/%d/sub_issues",
227+
client.BaseURL.String(), owner, repo, issueNumber)
227228
req, err := http.NewRequestWithContext(ctx, "POST", url, strings.NewReader(string(reqBodyBytes)))
228229
if err != nil {
229230
return nil, fmt.Errorf("failed to create request: %w", err)

0 commit comments

Comments
 (0)