shaharsol
shaharsol

Reputation: 1022

Get commit changed files & patch using github API v4 graphQL

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?

Upvotes: 11

Views: 2052

Answers (1)

bentz123
bentz123

Reputation: 1121

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

Upvotes: 9

Related Questions