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

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Theodora Boudale (Inactive)
            Votes:
            10 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: