I'm trying to generate a list of commit messages between either two branches or two commits for the purposes of generating release notes as part of our CI/CD pipeline.
Ideally, we want a text version of an output like this
So is example, this page gives us all the commit messages between the two branches default and stable
I've found this documentation
But it is way too verbose for my use case.
Is the commits endpoint that should give you the information you're looking for. It is going to return it as JSON. If you're really only interested in the commit messages you can customize the fields that come back. See https://developer.atlassian.com/bitbucket/api/2/reference/meta/partial-response.
Combining those things, to get the commit messages between a feature branch and the master branch might look something like this:
Which gives you just the commit message and a link to follow (the API is paginated).
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs