-
Suggestion
-
Resolution: Duplicate
-
None
Problem Definition
When a PR is merged with Merge commit, it lists both the source branch commits and the merge commit in its Commits.
However, when the PR is merged with Squash commit, only the squash commit shows in its Commits after the merge.
Users would like to be able to view the commits of the source branch as well, if they need to inspect the PR commits at a later date.
It has also been requested to show the commits even if the source branch is deleted when the PR is merged.
The use case here is: source branch is deleted after a PR is squash merged, to keep the repo history clean.
However, user would still like to inspect the PR commits (the source branch commits) individually at a later time.
This may be dependant on repo refs for PRs https://jira.atlassian.com/browse/BCLOUD-5814, since without PR refs, the commits of the (deleted now) source branch will get removed when a git gc runs.
Suggested Solution
Display the commits of the source branch in PR commits, when a PR is merged with Squash merge.
- is blocked by
-
BCLOUD-5814 Repository refs for pull requests
- Reviewing