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

Close branch on PR merge from fork does not close branch in source repository (BB-12657)

      I forked from a repository, and then from the forked repository I created a branch called second, and did a Pull Request to merge with the original repository. Before merging, I checked on the line that says "close second after pull request is merged".

      But after I merged with the original repository, the branch second is still not being deleted from the forked repository:


      Edit by @tboudale : The destination branch may get deleted by this bug in the following scenario:

      1. Create a repo1 with branch develop. develop must not be the main branch.
      2. Create a fork of repo2.
      3. Create a PR from repo2/develop into repo1/develop.
      4. Merge the PR while also selecting "Close Source Branch"
      5. (BUG) The repo1/develop branch is deleted.

        1. 2070891136-pullrequest2.JPG
          2070891136-pullrequest2.JPG
          65 kB
        2. 2324859914-pullrequest1.JPG
          2324859914-pullrequest1.JPG
          93 kB
        3. 3666533747-pullrequest3.JPG
          3666533747-pullrequest3.JPG
          60 kB

            [BCLOUD-10997] Close branch on PR merge from fork does not close branch in source repository (BB-12657)

            No work has yet been logged on this issue.

              achhabra@atlassian.com Abhin Chhabra (Inactive)
              gkoh Gideon Koh (Inactive)
              Affected customers:
              6 This affects my team
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: