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:
parent
64416e1ea1
commit
aad0239683
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue