I'm using the Github API for a personal side project (more specifically, Octokit as a Ruby wrapper for it), and am running into a little trouble. I can't seem to figure out how to see the number of commits/merged pushes a repo has had.
I see in the Repos section of the Github V2 API (in show repo information), it shows pushed_at
, which is the latest push.
If I were to want to retrie开发者_如何转开发ve the last 5 or so commits/merged pushes, do you know how I could go about doing that?
Thank you!
You probably want to look into the Commits API, rather than the Repository API.
精彩评论