How to delete a GitHub repo using the API

If you created the token you’re using through the Applications page, then this token will have these scopes: user, public_repo, repo, gist. You can verify this by making an API request with that token and looking at the response HTTP headers: curl -v -H ‘Authorization: token xxx’ Look for the X-OAuth-Scopes response header which … Read more

Github API: Retrieve all commits for all branches for a repo

I have encountered the exact same problem. I did manage to acquire all the commits for all branches within a repository (probably not that efficient due to the API). Approach to retrieve all commits for all branches in a repository As you mentioned, first you gather all the branches: # The key that … Read more