4

Is there a way using the BitBucket API to get a list of all commiters/contributors to a repository?

I know I can user git-shortlog for this purpose but would rather make an API call if possible.

Drejc
  • 14,196
  • 16
  • 71
  • 106

1 Answers1

1

No, we do not currently have that kind of data indexed, or available through the API.

Erik van Zijst
  • 2,282
  • 2
  • 17
  • 14
  • 1
    I have "solved" id by going over all commits and collecting authors ... it is not the fastest solution but it works. GitHub has a nice simple API call to solve this. – Drejc Dec 29 '15 at 19:47
  • 3
    Yep, that'll do it. If you're going to do that though, it'll be way faster to just clone the repo and compile it locally with something like: $ git log --format="%ae" | sort | uniq -c – Erik van Zijst Dec 30 '15 at 20:32
  • I know, but I would like to obtain some BitBucket specific info, like author id, etc. I went ahead an did this, I store the last commit id so next time I stop as soon as I find the same commit id. – Drejc Jan 01 '16 at 18:20
  • FWIW, you could still perform all this locally and use the API to resolve email addresses to Bitbucket accounts by hitting: https://api.bitbucket.org/2.0/users/evzijst@atlassian.com – Erik van Zijst Jan 04 '16 at 17:34