开发者

Question using github API

开发者 https://www.devze.com 2023-04-01 00:28 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号