Hi all,
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??
Example,
PR commit list pre squash merge:
PR commit list post squash merge:
Hi @neilclarke-edreamsodigeo ,
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.
Kind regards,
Theodora
Thanks for the detailed response!
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.