ncrocfer
ncrocfer

Reputation: 2570

Count commits on Github api

is-it possible to retrieve the number of commits for a particular user with Github API v3 ?

The only way I've found is to list all commits and increment a counter... Is there a simpler way please ? Thank you.

Upvotes: 3

Views: 3089

Answers (1)

johndbritton
johndbritton

Reputation: 2652

Check out the Repository Statistics API documentation. Specifically, the contributors endpoint would be useful to you.

You can get a list of contributors along with addition, deletion, and commit statistics for a given repository.

I'm not aware of an API endpoint that would give you commit statistics for a user's activity across all repositories.

Upvotes: 4

Related Questions