Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Configuration

...

Pull Request Please allows to protect Git refs from pushes without a pull request through the following two options:

  • Specific Git refs: e.g. refs/heads/master
    This option can be used to restrict access to a fixed set of Git refs with specific values. If you e.g. use the Gitflow workflow for your repository, you can restrict access to the branches refs/heads/master and refs/heads/develop
  • Patterns for Git refs: e.g. tags/**, ?.?, heads/**/master
    Use this option if you want to restrict access to Git refs with branches that can evolve over time. E.g. if you use the Gitflow workflow, one example might be releases/** or release-*  which means that nobody is able to push to a release branch (e.g., refs/heads/releases/1.0 or refs/heads/release-1.0) anymore without a valid pull request. The syntax for these patterns is exactly the same as Stash is using for its branch permissions page which is similar to the pattern matching known from Apache Ant. The allowed wildcard expressions are:
     

    ?

    Matches one character (any character except path separators '/')

    *

    Matches zero or more characters (not including path separators)

    **

    Matches zero or more path segments (e.g. **/tags matches refs/heads/tags)

    See here for details: https://confluence.atlassian.com/display/STASH030/Branch+permission+patterns


Pull Request Please uses a pre-receive hook internally to abort a push to one of the specified Git refs. In order to inform the user why a push is not allowed, you can specify a message on this configuration page. It For a user it is important that the message cleary clearly stands out from the other text in the console. Therefore, Pull Request Please is able to generate a nice ASCII art message. Just enter some text and hit "Create ASCII art":

...