Fix fetching issue/PR comments

The "Author" struct was too overloaded in different types of queries that treat struct fields in incompatible ways. This change defines a simpler CommentAuthor struct for use in comments until we can figure out how to query `... on User` information for comments too.
This commit is contained in:
Mislav Marohnić 2022-12-23 17:14:06 +01:00
parent 7ffa87fcd0
commit 8d82a96349
No known key found for this signature in database
7 changed files with 37 additions and 36 deletions

View file

@ -24,7 +24,7 @@ var issueComments = shortenQuery(`
comments(first: 100) {
nodes {
id,
author{login},
author{login,...on User{id,name}},
authorAssociation,
body,
createdAt,
@ -43,7 +43,7 @@ var issueComments = shortenQuery(`
var issueCommentLast = shortenQuery(`
comments(last: 1) {
nodes {
author{login},
author{login,...on User{id,name}},
authorAssociation,
body,
createdAt,