Method
FetchPullRequestDiff
(
ctx context.Context,
token string,
ref PRRef,
)
Source from the content-addressed store, hash-verified
| 331 | } |
| 332 | |
| 333 | func (g *githubProvider) FetchPullRequestDiff( |
| 334 | ctx context.Context, |
| 335 | token string, |
| 336 | ref PRRef, |
| 337 | ) (string, error) { |
| 338 | requestURL := fmt.Sprintf( |
| 339 | "%s/repos/%s/%s/pulls/%d", |
| 340 | g.apiBaseURL, |
| 341 | url.PathEscape(ref.Owner), |
| 342 | url.PathEscape(ref.Repo), |
| 343 | ref.Number, |
| 344 | ) |
| 345 | return g.fetchDiff(ctx, requestURL, token) |
| 346 | } |
| 347 | |
| 348 | func (g *githubProvider) FetchBranchDiff( |
| 349 | ctx context.Context, |
Callers
nothing calls this directly
Tested by
no test coverage detected