Github API - retrieve user commits?

后端 未结 5 1144
日久生厌
日久生厌 2021-02-13 11:36

I\'m trying build a method in which I can access a Github user name, and publish either all commits or at least a number of commits from that user.

Is there a call to GE

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 12:13

    UPDATE MAY 2019

    You can get the commit count by iterating over the repos and using the Contributors API. This is faster and easier than parsing commit events in the Events API.

    basically query the user repos making a get request to /users//repos and then iterate over the repository names making requests to /repos///contributors

提交回复
热议问题