Expose commit OID in PR reviews JSON export
This commit is contained in:
parent
8891456b4b
commit
40cfa90222
2 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ type PullRequestReview struct {
|
|||
ReactionGroups ReactionGroups `json:"reactionGroups"`
|
||||
State string `json:"state"`
|
||||
URL string `json:"url,omitempty"`
|
||||
Commit Commit `json:"commit"`
|
||||
}
|
||||
|
||||
func AddReview(client *Client, repo ghrepo.Interface, pr *PullRequest, input *PullRequestReviewInput) error {
|
||||
|
|
|
|||
|
|
@ -75,11 +75,13 @@ var prReviewRequests = shortenQuery(`
|
|||
var prReviews = shortenQuery(`
|
||||
reviews(first: 100) {
|
||||
nodes {
|
||||
id,
|
||||
author{login},
|
||||
authorAssociation,
|
||||
submittedAt,
|
||||
body,
|
||||
state,
|
||||
commit{oid},
|
||||
reactionGroups{content,users{totalCount}}
|
||||
}
|
||||
pageInfo{hasNextPage,endCursor}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue