How do I get a person's no of commits?

Avatar

Giulio

about 1 year ago

I'm messing around with the Ohloh API and PHP and I just found something's missing (or maybe I'm so dumb I've not found the way to do it ;).

I'm able to get the number of commits by a user to a specific project but not his 'full' set of changes, the number of commits a person has done. Is there any way to get it without recurring to the already-served widget?


Avatar

Robin Luckey

about 1 year ago

Hi Giulio,

Yes, this data is not yet available through the API.

Internally, we have a data structure called a "Position" which joins an account to a project contribution. Positions are created when someone clicks the "I am this person" button on a contributor page.

Positions are not yet exposed through the API. This means you can't get the list of projects contributed to by an account, and so by extension you also can't get the commits associated with an account.

There's no technical reason that this data is not available -- we just had to limit the scope of the API to fit in available development time. It could be added relatively simply, and when we have time to work on the API again it will certainly be added.


Avatar

rpremraj

11 months ago

Dear Robin,

Any update on developing this front of the API?

Cheers!


Avatar

Johann Schmitz

2 months ago

Anything new on that?


Avatar

Robin Luckey

2 months ago

No, there have been no changes to the API in quite a while.