chore(issue edit): comments cleanup

This commit is contained in:
Kynan Ware 2025-05-09 23:02:15 -06:00
parent 0efdfed068
commit e0afc91fef
2 changed files with 2 additions and 13 deletions

View file

@ -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 {

View file

@ -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 }
} } } }
`))