(_ *testing.T, reg *httpmock.Registry, number int)
| 1877 | } |
| 1878 | |
| 1879 | func mockIsssueNumberGetWithAssignedActors(_ *testing.T, reg *httpmock.Registry, number int) { |
| 1880 | reg.Register( |
| 1881 | httpmock.GraphQL(`query IssueByNumber\b`), |
| 1882 | httpmock.StringResponse(fmt.Sprintf(` |
| 1883 | { "data": { "repository": { "hasIssuesEnabled": true, "issue": { |
| 1884 | "id": "%[1]d", |
| 1885 | "number": %[1]d, |
| 1886 | "url": "https://github.com/OWNER/REPO/issue/%[1]d", |
| 1887 | "assignedActors": { |
| 1888 | "nodes": [ |
| 1889 | { |
| 1890 | "id": "HUBOTID", |
| 1891 | "login": "hubot", |
| 1892 | "__typename": "Bot" |
| 1893 | } |
| 1894 | ], |
| 1895 | "totalCount": 1 |
| 1896 | } |
| 1897 | } } } }`, number)), |
| 1898 | ) |
| 1899 | } |
| 1900 | |
| 1901 | func mockIssueProjectItemsGet(_ *testing.T, reg *httpmock.Registry) { |
| 1902 | reg.Register( |
no test coverage detected