No hooks are triggered on pull request source branch deletion

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            Semyon Vadishev
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: