Merge pull request #6881 from cli/reviewers-json-fix
Fix JSON payloads for PR reviewers, mergedBy
This commit is contained in:
commit
351226d34e
2 changed files with 2 additions and 2 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue