Get All Commit data in one call


#1

Hi All,
I want to get all committed file data in call. By Git hub API v3 I can do by 3 calls:

  1. Get all commit in first call:
    https://api.github.com/repos/ritsrivastava01/TS_TIPS/commits?sha=master
    returns all commits in this branch (in this case branch is master) also there is only one commit it can me more.

  2. Get the commit details by sha:
    https://api.github.com/repos/ritsrivastava01/TS_TIPS/commits/2be1d0ce7f6dc9034fa32ac526d48d8d47d3f6d2
    (get all commit details by appending sha id )
    (it will be recursive in case of multiple sha id OR commit)

  3. Finally I can get data:
    https://github.com/ritsrivastava01/TS_TIPS/raw/2be1d0ce7f6dc9034fa32ac526d48d8d47d3f6d2/tip.json
    (found in files -> rawurl in 2nd call)
    (this is recursive api call as per sha id to get rawurl)

Is there any way to make it one call by GraphQL OR anyother way to get all commit file (only one file will be committed -->tip.json in this case) details???

Thanks…