11

In the Rest v3, I could easily query a commit and get the changed files and patch for each file: https://developer.github.com/v3/repos/commits/#get-a-single-commit

I don't seem to be able to retrieve this info using the new v4 graphQL, does anyone have a clue how?

shaharsol
  • 991
  • 2
  • 10
  • 31

1 Answers1

7

Currently, it seems that the functionality you are looking for, and much needed in my opinion, isn't supported with GitHub's GraphQL API v4 and it's probably best to stick with the current REST API.

You can refer to the following posts on the official GitHub API support forum and the answers given there by GitHub's staff.

ref1 - 29/5/19

ref2 - 5/11/18

Also, a similar question was posted on SO here

bentz123
  • 1,081
  • 7
  • 16