diff --git a/api/queries_issue.go b/api/queries_issue.go index 11db02cc0..cc01c039f 100644 --- a/api/queries_issue.go +++ b/api/queries_issue.go @@ -59,12 +59,6 @@ type Issue struct { Milestone struct { Title string } - Participants struct { - Nodes []struct { - Login string - } - TotalCount int - } } const fragments = ` @@ -340,12 +334,6 @@ func IssueByNumber(client *Client, repo ghrepo.Interface, number int) (*Issue, e milestone{ title } - participants(first: 100) { - nodes { - login - } - totalCount - } } } }` diff --git a/command/issue.go b/command/issue.go index f396afbbb..187b2be21 100644 --- a/command/issue.go +++ b/command/issue.go @@ -511,23 +511,6 @@ func issueProjectList(issue api.Issue) string { return list } -func issueParticipantList(issue api.Issue) string { - if len(issue.Participants.Nodes) == 0 { - return "" - } - - participantNames := make([]string, 0, len(issue.Participants.Nodes)) - for _, participant := range issue.Participants.Nodes { - participantNames = append(participantNames, participant.Login) - } - - list := strings.Join(participantNames, ", ") - if issue.Participants.TotalCount > len(issue.Participants.Nodes) { - list += ", …" - } - return list -} - func displayURL(urlStr string) string { u, err := url.Parse(urlStr) if err != nil { diff --git a/test/fixtures/issueView_preview.json b/test/fixtures/issueView_preview.json index d78ff70fd..e25090a61 100644 --- a/test/fixtures/issueView_preview.json +++ b/test/fixtures/issueView_preview.json @@ -26,14 +26,6 @@ "milestone": { "title": "" }, - "participants": { - "nodes": [ - { - "login": "marseilles" - } - ], - "totalcount": 1 - }, "comments": { "totalCount": 9 }, diff --git a/test/fixtures/issueView_previewWithMetadata.json b/test/fixtures/issueView_previewWithMetadata.json index a7c21af59..a420eec66 100644 --- a/test/fixtures/issueView_previewWithMetadata.json +++ b/test/fixtures/issueView_previewWithMetadata.json @@ -74,20 +74,6 @@ "milestone": { "title": "uluru" }, - "participants": { - "nodes": [ - { - "login": "marseilles" - }, - { - "login": "monaco" - }, - { - "login": "montpellier" - } - ], - "totalcount": 3 - }, "comments": { "totalcount": 9 },