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:
parent
7ffa87fcd0
commit
8d82a96349
7 changed files with 37 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue