Hi,
I am currently working with Bitbucket API to automate some processes to calculate the cycle time of features.
I wonder if there's a way to get the commits on a certain deployment. I read the documentation about the pipelines and deployments endpoints, but I only got the merge commit to the deployment branch.
Please let me know if there's a way.
I appreciate any help you can provide.
Hi @Ahmed Eldably and welcome to the community!
The pipelines and deployments API endpoints will only return the commit that triggered the build or deployment. I'm afraid it is not possible to get that info via API.
I can create a feature request for our development team to consider. Could you please confirm first: when you say all commits on a deployment, do you mean all commits that were included in the push that triggered the deployment?
Kind regards,
Theodora
Thanks a lot for your reply!
More specifically, in our case, the pipeline gets triggered with the merge commit from branch_x to the main branch on a certain deployment environment. So in this case we have other commits that also make their way into the production environment (for example).
It is useful for us to access all these commits to make some calculations related to feature tracking. Could you make a feature request, please?
Kind regards,
Ahmed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the similar requirement. I wanted to know the commits that were checked in into the branch before the pipeline triggered. From the pipeline I wanted to fetch all the commits from that pipeline. Is. there any workaround on a short term which can be implemented to get the commits using the Bitbucket API?
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.