MCPcopy Create free account
hub / github.com/cli/cli / mockReviewerResponseForRepo

Function mockReviewerResponseForRepo

api/queries_pr_test.go:381–383  ·  view source on GitHub ↗

mockReviewerResponseForRepo generates a GraphQL response for SuggestedReviewerActorsForRepo tests. It creates collaborators (c1, c2...) and teams (team1, team2...).

(collabs, teams, totalCollabs, totalTeams int)

Source from the content-addressed store, hash-verified

379// mockReviewerResponseForRepo generates a GraphQL response for SuggestedReviewerActorsForRepo tests.
380// It creates collaborators (c1, c2...) and teams (team1, team2...).
381func mockReviewerResponseForRepo(collabs, teams, totalCollabs, totalTeams int) string {
382 return mockReviewerResponseForRepoWithCopilot(collabs, teams, totalCollabs, totalTeams, false)
383}
384
385// mockReviewerResponseForRepoWithCopilot generates a GraphQL response for SuggestedReviewerActorsForRepo tests.
386// If copilotAvailable is true, includes Copilot in the first open PR's suggested reviewers.

Callers 1

Tested by

no test coverage detected