Skip to content

Expose commit SHA in PR reviews JSON export - #6646

Merged
mislav merged 1 commit into
trunkfrom
pr-expose-review-commit
Nov 22, 2022
Merged

mislav merged 1 commit into
trunkfrom
pr-expose-review-commit

Conversation

@mislav

@mislav mislav commented Nov 21, 2022 •

Copy link
Copy Markdown
Contributor

This is to expose the exact commit that a PR review was left for: #6615

Bonus fix: correctly reports the GraphQL id field for each PR review object in JSON.

$ gh pr view 6603 --json reviews                       
{
  "reviews": [
    {
      "id": "PRR_kwDODKw3uc5GR6yX",
      "author": {
        "login": "mislav"
      },
      "authorAssociation": "MEMBER",
      "body": "Thanks for taking this on! Let's use YAML as it's more readable in its raw format than JSON.",
      "submittedAt": "2022-11-14T13:24:00Z",
      "includesCreatedEdit": false,
      "reactionGroups": [],
      "state": "CHANGES_REQUESTED",
      "commit": {
        "oid": "2e0e229d481b65c6302ec06225196a115b3fa5f4"
      }
    }
  ]
}

@mislav
mislav requested a review from a team as a code owner November 21, 2022 16:29
@mislav
mislav requested review from vilmibm and removed request for a team November 21, 2022 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants