Is there a more efficient way to get the number of additions / deletions related to commit than a loop through each individual message and call:
GET /repos/:owner/:repo/commits/:sha
( https://developer.github.com/v3/repos/commits/ )
Just to get:
"stats": {
"additions": 104,
"deletions": 4,
"total": 108
},
Data
Unfortunately, the commit endpoint is:
GET /repos/:owner/:repo/commits
It contains a lot of data about each commit, but not this detail, which means a huge number of additional API calls to receive it.
source
share