Expose commit OID in PR reviews JSON export

This commit is contained in:
Mislav Marohnić 2022-11-21 17:25:44 +01:00
parent 8891456b4b
commit 40cfa90222
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -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 {

View file

@ -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}