Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-11746

Merge check for duplicate open pull requests

    XMLWordPrintable

    Details

    • Feedback Policy:
      We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Description

      When creating a new pull request there are some checks in the application to minimise the possibility of creating a duplicate of an existing Open pull request.

      However, under certain circumstances (for example as mentioned in BSERV-11527) it is still possible to end up with more than one duplicate Open pull request (ie from the same repository and branch, to the same repository and branch).

      In such a scenario if a user tries to merge one of the pull requests, the application will in fact:

      • merge them all (with the one where "Merge" was clicked showing the commit and the other(s) showing "remotely merged") - assuming they're not using a squash or rebase strategy
      • (if they are using a squash or rebase strategy) the resulting behavior could be potentially more undesirable

       

      The suggestion here is to implement a new Merge Check, which would block a pull request from being merged if it has duplicate open pull requests. This would:

      • draw the user's attention to the duplicate pull requests (as they might not already be aware of them)
      • give the user the opportunity to deal with the duplicates (decline/delete the ones which are duplicates, and then merge the one which is intended)

        Attachments

          Activity

            People

            Assignee:
            fdoherty@atlassian.com Frank Doherty
            Reporter:
            fdoherty@atlassian.com Frank Doherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: