The ultimate task I need to perform is to extract the the commits that are made to a specific branch between two time points. This is quite easy to achieve with git CLI but I am limited to Bitbucket API v1.
Of course it's not a problem to get all commits:
<stash-url>/rest/api/1.0/projects/<proj_name>/repos/<repo_name>/commits?since=<start>&until=<end>
But then I have no branch context.
The only query that I can made successfully is to retrieve the latest commit of the branch:
<stash-url>/rest/api/1.0/projects/<proj_name>/repos/<repo_name>/commits?until=<branch_name>
Basically what I am missing is the ability to make a connection between a branch and a commit.
Any help will be appreciated.