6

Is it possible to fetch commit messages from bitbucket via json or something so that a project manager can see what the changes are without having to look at the code. If it's possible can you give me some ideas on how to do it.

3
  • 2
    bitbucket has an API, did you check it?
    – yannis
    Commented Jul 6, 2012 at 14:19
  • If all you want are commit messages (and you are indeed ok with an "or something" rather than "json"), and you are set on using a user interface for this, why both with an API when you can use hg log or git log / git shortlog??
    – haylem
    Commented Jul 6, 2012 at 19:42
  • Furthermore, if the project manager is non-technical, I doubt commit messages will be interesting. More likely, the manage would be interested in seeing the tickets (which you can also fetch via an API), which you obviously reference in all your commits (you do, do you?). If the project manager is technical, I'd say the hg/git command line or GUI client would do, as I suggested in the previous comment.
    – haylem
    Commented Jul 6, 2012 at 19:44

1 Answer 1

4

As already mentioned by Yannis in his comment, you can use the Bitbucket API.

The documentation for changesets says that you can use the following URI to get a list of all changesets for a repository:

https://api.bitbucket.org/1.0/repositories/USERNAME/REPOSITORY/changesets

For example, https://api.bitbucket.org/1.0/repositories/jespern/django-piston/changesets
(this is the example link from the documentation)

This does return JSON, but I doubt that this is really comfortable to read for a (non-technical?) manager.

--> I guess I'd rather give him the link to the list of commits in Bitbucket's GUI.
IMO it's much easier to read and he doesn't need to look at the code either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.