I am trying to create a Python script which given two Git hashes, it finds what commits occurred in between the two hashes. It then should get metadata regarding each commit found, such as the authors of the commit, the date & time, the files that were changed, etc.
Currently, my script locally uses Git CLI to do this, however its far too slow. Are there APIs I can use to speed this process up?
@Yusef Ahmed There are 4 REST API end-point to list commits: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get
The response contains author, date, message and stuff, but it seems it may not contain the file list. If that's the case, you can get more details using this end-point:
(I don't see any "bulk get commit" operation though...)
Hello @Yusef Ahmed . Welcome to Bitbucket Community! You can use Bitbucket Cloud API to achieve this automation : https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.