Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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.

share|improve this question
2  
bitbucket has an API, did you check it? –  Yannis Rizos Jul 6 '12 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 Jul 6 '12 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 Jul 6 '12 at 19:44
add comment

1 Answer

up vote 4 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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