fix(issue transfer): use IssueRepoInfo to fetch minimal fields for issues

Only the destination repo ID is needed for issue transfer. Switch from
GitHubRepo to IssueRepoInfo to use minimal fields appropriate for issues.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Babak K. Shandiz 2026-03-09 11:49:22 +00:00
parent 64416e1ea1
commit aad0239683
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -105,7 +105,7 @@ func issueTransfer(httpClient *http.Client, issueID string, destRepo ghrepo.Inte
destinationRepoID = r.ID
} else {
apiClient := api.NewClientFromHTTP(httpClient)
r, err := api.GitHubRepo(apiClient, destRepo)
r, err := api.IssueRepoInfo(apiClient, destRepo)
if err != nil {
return "", err
}