MCPcopy Index your code
hub / github.com/coder/coder / FetchPullRequestDiff

Method FetchPullRequestDiff

coderd/externalauth/gitprovider/github.go:333–346  ·  view source on GitHub ↗
(
	ctx context.Context,
	token string,
	ref PRRef,
)

Source from the content-addressed store, hash-verified

331}
332
333func (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
348func (g *githubProvider) FetchBranchDiff(
349 ctx context.Context,

Callers

nothing calls this directly

Calls 1

fetchDiffMethod · 0.95

Tested by

no test coverage detected