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

Allow Stash create a new branch with alphanumeric and huphen characters only

    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

      We're using an external pre-receive hook to trigger our own perl script. In this script we have rule:
      If user create a branch and push it to remote where branch name not match pattern (only alphanumeric, hyphen and underscore characters) the hook reject push.
      Right now we have a problem: If user create a branch from Stash GUI, the plugin allowed create new branch without any allowed characters rule. After user clone repo and push that branch to remote repo, the hook reject push.

      How we can set pattern for branch name in Stash?

      I thinking about create a new plug-ins to listening BranchCreatedEvent. If new branch name not match pattern, we'll cancel it.

      Please, give me a clue if I'm on right way.
      Do you know how I can resolve this problem in other way?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              3b80570c3761 Valeriy Garnitskiy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: