ChicoState / chronicle

0 stars 1 forks source link

Fetch Lines added and deleted using commits api #7

Open SANDESHSOBARAD opened 7 months ago

SANDESHSOBARAD commented 7 months ago

The API I used is not fetching lines added and deleted. There is a similar API for commits in the GitHub api documentation: https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28

Screenshot 2024-02-23 at 3 42 44 PM

If you can go through this page I believe you will find an api that looks like: await octokit.request('GET /repos/{owner}/{repo}/commits/{ref}'. I believe we can fetch the lines added and deleted using this but we have to figure out the {ref} part in the api.

kbuffardi commented 7 months ago

Note: resolving this issue will also close #1