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

Method StubIssueRepoInfoResponse

pkg/httpmock/legacy.go:25–37  ·  view source on GitHub ↗
(owner, repo string)

Source from the content-addressed store, hash-verified

23}
24
25func (r *Registry) StubIssueRepoInfoResponse(owner, repo string) {
26 r.Register(
27 GraphQL(`query IssueRepositoryInfo\b`),
28 StringResponse(fmt.Sprintf(`
29 { "data": { "repository": {
30 "id": "REPOID",
31 "name": "%s",
32 "owner": {"login": "%s"},
33 "hasIssuesEnabled": true,
34 "viewerPermission": "WRITE"
35 } } }
36 `, repo, owner)))
37}
38
39func (r *Registry) StubRepoResponse(owner, repo string) {
40 r.StubRepoResponseWithPermission(owner, repo, "WRITE")

Callers 3

TestIssueCreate_metadataFunction · 0.95

Calls 3

RegisterMethod · 0.95
GraphQLFunction · 0.85
StringResponseFunction · 0.85

Tested by 3

TestIssueCreate_metadataFunction · 0.76