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

Set "delete source branch" as default for all pull-requests

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

      Hi Atlassian Team,

      as far as I can see there is no way to enable the flag "delete source branch" per default for all pull-requests. 

      Background: some developers forget to click this checkbox when creating a pull request. After merging the source branch still exists.

      It would be great if we could define "delete source branch" as default for all pull requests. So a developer has to unset it if he doesn't want to delete the source branch (which is only for some seldom cases).

       

      Thanks

      Matthias

       


      Latest update from Atlassian 2024-10-21

      Bitbucket Cloud has started work on an option in repo settings (and project settings) that controls the default for "delete source branch after the PR is merged". We'll post an update here when the feature is available.

            [BCLOUD-21661] Set "delete source branch" as default for all pull-requests

            softreigns added a comment -

            +1

            softreigns added a comment - +1

            +1

            Simplatex added a comment -

            +1

            Simplatex added a comment - +1

            +1

            Wow, progress after only 3 years from the initial highly requested feature request: https://jira.atlassian.com/browse/BCLOUD-12503

             

            If only we could finally get Work In Progress PRs after 8 years .... https://jira.atlassian.com/browse/BCLOUD-12503

             

            Great, thx Atlassian

            Simon Fischer added a comment - Wow, progress after only 3 years from the initial highly requested feature request: https://jira.atlassian.com/browse/BCLOUD-12503   If only we could finally get Work In Progress PRs after 8 years .... https://jira.atlassian.com/browse/BCLOUD-12503   Great, thx Atlassian

            Hi all 👋 As mentioned on related suggestion BCLOUD-15300, Bitbucket Cloud has started work on an option in repo settings (and project settings) that controls the default for "delete source branch after the PR is merged". We'll post an update here when the feature is available.

            Dave Parrish [Atlassian] added a comment - Hi all 👋 As mentioned on related suggestion BCLOUD-15300 , Bitbucket Cloud has started work on an option in repo settings (and project settings) that controls the default for "delete source branch after the PR is merged". We'll post an update here when the feature is available.

            + 1

            This would really help my team.

            Andrew Feeney added a comment - + 1 This would really help my team.

            Bert Oost added a comment -

            We have created a hook to update the PR close-branch setting after a pull request is created.
            Therefore we do not see this change in the activity timeline. Would be nice to see that.

            For this +1

            Bert Oost added a comment - We have created a hook to update the PR close-branch setting after a pull request is created. Therefore we do not see this change in the activity timeline. Would be nice to see that. For this +1

            +1000

            Savan Vadalia added a comment - +1000

            +1 Surprised this isn't available with Bitbucket Cloud! (Or at the very least make it a per-user persistable option for subsequent PRs)

            Denny Miller added a comment - +1 Surprised this isn't available with Bitbucket Cloud! (Or at the very least make it a per-user persistable option for subsequent PRs)

              dparrish Dave Parrish [Atlassian]
              13244c4e0671 Matthias Maier
              Votes:
              293 Vote for this issue
              Watchers:
              113 Start watching this issue

                Created:
                Updated: