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

Users are able to merge an open PR even though the source branch has been closed

    XMLWordPrintable

Details

    • 12
    • 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.

    Description

      Users are able to merge an open PR even though the source branch has been closed.

      Steps to Reproduce - We have 3 branches (master, develop, feature)

      1. Create a PR from the feature branch to the master branch.
      2. Navigate to Branches menu and click on feature branch.
      3. Click "Change Destination" and select develop branch
      4. Click Merge and select close source branch. Proceed with the merge

      Now that the source branch is closed, navigate to the created pull request and you will be able to proceed with the merge. You will not be able to update the PR as the source branch no longer exist.

      User should not be allowed to close the branch if there's an open PR. Secondly, users should not be allowed to merge the PR as well as the source branch no longer exist.

      It would be nice if there could be a notification to users that the source branch no longer exist when an attempt to merge on the open PR.

      Attachments

        Activity

          People

            mbertrand aMarcus (Inactive)
            pmahendran+atlassian_conflict Pravin
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: