File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88 "net/http"
99 "strings"
1010
11- "github.com/shurcooL/githubv4"
12-
11+ "github.com/cli/cli/internal/ghinstance"
1312 "github.com/cli/cli/internal/ghrepo"
13+ "github.com/shurcooL/githubv4"
1414)
1515
1616type PullRequestReviewState int
@@ -210,8 +210,8 @@ func (pr *PullRequest) ChecksStatus() (summary PullRequestChecksStatus) {
210210}
211211
212212func (c Client ) PullRequestDiff (baseRepo ghrepo.Interface , prNumber int ) (io.ReadCloser , error ) {
213- url := fmt .Sprintf ("https://api.github.com/repos /%s/pulls/%d" ,
214- ghrepo .FullName (baseRepo ), prNumber )
213+ url := fmt .Sprintf ("%srepos /%s/pulls/%d" ,
214+ ghinstance . RESTPrefix ( baseRepo . RepoHost ()), ghrepo .FullName (baseRepo ), prNumber )
215215 req , err := http .NewRequest ("GET" , url , nil )
216216 if err != nil {
217217 return nil , err
You can’t perform that action at this time.
0 commit comments