Merge pull request #6881 from cli/reviewers-json-fix

Fix JSON payloads for PR reviewers, mergedBy
This commit is contained in:
Mislav Marohnić 2023-01-19 16:17:22 +01:00 committed by GitHub
commit 351226d34e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ type PullRequestReviews struct {
type PullRequestReview struct {
ID string `json:"id"`
Author Author `json:"author"`
Author CommentAuthor `json:"author"`
AuthorAssociation string `json:"authorAssociation"`
Body string `json:"body"`
SubmittedAt *time.Time `json:"submittedAt"`

View file

@ -263,7 +263,7 @@ func IssueGraphQL(fields []string) string {
case "author":
q = append(q, `author{login,...on User{id,name}}`)
case "mergedBy":
q = append(q, `mergedBy{login}`)
q = append(q, `mergedBy{login,...on User{id,name}}`)
case "headRepositoryOwner":
q = append(q, `headRepositoryOwner{id,login,...on User{name}}`)
case "headRepository":