Branch Handler

Check all Git actions on the project branches.

Regular Expression

This is a generic rule where you can use regular expressions to define the naming conventions for branches. See Syntax

version: "1.0.0"
hooks:
  - name: global
    type: pre-receive
    rules:
      - type: branch
        conditions:
          - type: pattern
            condition: (feature|release|hotfix)\/[a-z\d-_.]+
            rejection_message: Branch `{{ .Branch }}` must match Gitflow naming convention
Last modified October 22, 2020: Initial commit (6bf65ac)