Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-4269

No hooks are triggered on pull request source branch deletion

    XMLWordPrintable

Details

    • 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

      This bug was reported in SubGit issue tracker: SG-61.

      When Git-SVN mirror is enabled for a Git repository via SVN Mirror Add-on, "delete source branch" option is not respected while merging pull requests.

      When Stash deletes a source branch, it raises no events and provides no information on deleted branch via GitPullRequestMergeRequestedEvent. As result SubGit plugin has no information on performed action. Next time the plugin synchronizes Git repository with Subversion server, it resurrects deleted Git branch since its SVN counterpart still presents in the latest revision.

      As a workaround Stash user has to delete source branch manually as soon as pull request is merged:

      git push <origin> --delete <branch>
      

      We would appreciate if Stash could somehow notify our plugin on source branch deletion when user merges pull request.

      Thank you in advance,
      Semyon

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9134a18b55f0 Semyon Vadishev
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: