Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-20598

When a PR is merged with Squash, show the source branch commits in the PR commits list

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

            Unassigned Unassigned
            tboudale Theodora Boudale
            Votes:
            10 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: