diff --git a/api/queries_issue.go b/api/queries_issue.go index 2b15a41b9..833faaa47 100644 --- a/api/queries_issue.go +++ b/api/queries_issue.go @@ -99,6 +99,7 @@ type ActorAssignees struct { TotalCount int } +// TODO kw: Display names for actors with special display names. func (a ActorAssignees) Logins() []string { logins := make([]string, len(a.Edges)) for i, a := range a.Edges { diff --git a/pkg/cmd/issue/edit/edit_test.go b/pkg/cmd/issue/edit/edit_test.go index d27bbdee6..5a06614bc 100644 --- a/pkg/cmd/issue/edit/edit_test.go +++ b/pkg/cmd/issue/edit/edit_test.go @@ -701,18 +701,6 @@ func mockIssueProjectItemsGet(_ *testing.T, reg *httpmock.Registry) { } func mockRepoMetadata(_ *testing.T, reg *httpmock.Registry) { - // reg.Register( - // httpmock.GraphQL(`query RepositoryAssignableUsers\b`), - // httpmock.StringResponse(` - // { "data": { "repository": { "assignableUsers": { - // "nodes": [ - // { "login": "hubot", "id": "HUBOTID" }, - // { "login": "MonaLisa", "id": "MONAID" } - // ], - // "pageInfo": { "hasNextPage": false } - // } } } } - // `)) - reg.Register( httpmock.GraphQL(`query RepositoryAssignableActors\b`), httpmock.StringResponse(` @@ -721,7 +709,7 @@ func mockRepoMetadata(_ *testing.T, reg *httpmock.Registry) { { "login": "hubot", "id": "HUBOTID" }, { "login": "MonaLisa", "id": "MONAID" } ], - "pageInfo": { "hasNextPage": false, "endCursor": "Mg" } + "pageInfo": { "hasNextPage": false } } } } } `))