2

I want to write a simple java program or client which can get count of all the commits done by users.

How can I write it? Ie, How to use Github APi's in our code so I get the right result?
There are some API's present, but can somebody give example as to how to use it in java client?

1
  • I was going through githib but was unable to get any java apis will try org.eclipse.egit.github.core (it has a Contributor object) .. Commented Jun 22, 2015 at 18:34

1 Answer 1

1

I explained before that counting all the commits of a repo isn't available in GitHub API for commits.

However, the GitHub API for Statistics proposes a contributor call with a total field which can be interesting.

total

The Total number of commits authored by the contributor.

From the GitHub libraries pages, you can call this API in Java with:

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.