TODO: clean up methods in this file when there are no more callers
(owner, repo, branch string)
| 7 | // TODO: clean up methods in this file when there are no more callers |
| 8 | |
| 9 | func (r *Registry) StubRepoInfoResponse(owner, repo, branch string) { |
| 10 | r.Register( |
| 11 | GraphQL(`query RepositoryInfo\b`), |
| 12 | StringResponse(fmt.Sprintf(` |
| 13 | { "data": { "repository": { |
| 14 | "id": "REPOID", |
| 15 | "name": "%s", |
| 16 | "owner": {"login": "%s"}, |
| 17 | "description": "", |
| 18 | "defaultBranchRef": {"name": "%s"}, |
| 19 | "hasIssuesEnabled": true, |
| 20 | "viewerPermission": "WRITE" |
| 21 | } } } |
| 22 | `, repo, owner, branch))) |
| 23 | } |
| 24 | |
| 25 | func (r *Registry) StubIssueRepoInfoResponse(owner, repo string) { |
| 26 | r.Register( |