I am investigating using the squash merge strategy for PRs
Everything is working fine apart from one thing:
The list of commits is updated after I merged the PR; and it only contains the squashed commit. I lose all reference to the original commits.
In the GitHub UI the original commits are still accessible for future reference.
Am I missing something in the Bitbucket UI? or is this feature missing from Bitbucket??
PR commit list pre squash merge:
PR commit list post squash merge:
Based on your screenshots, I believe you are using Bitbucket Cloud (instead of server)?
This behavior is by design when you do a squash merge. The only way to access the original commits would be by not deleting the source branch when you merge, and then view them in the Commits page of the repo (but not in the PR).
We have an open feature request to show the commits of the source branch instead, as this has been requested by other users:
I would like to note here that in Bitbucket Cloud, PRs are not saved as refs in the repo. If the source branch of a PR is deleted after merging, its commits become dangling commits (not associated with any reference). They will still exist in the repo after the source branch deletion, but will most likely get removed once a git gc runs for the repo.
So, feature request BCLOUD-20598 may be dependant on the implementation of https://jira.atlassian.com/browse/BCLOUD-5814 (having refs for PRs in the repo).
Please feel free to let me know if you have any questions.
Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events