Skip to content

Branch name rules

Actions
Github action to enforce naming convention on branch names
v1.0.0
Latest
Star (78)

Branch naming rules

GitHub Actions status

Github action to enforce naming convention on branch names

Usage

See action.yml

name: 'Assert Branch Naming Convention'
on: pull_request

jobs:
  branch-naming-rules:
    runs-on: ubuntu-latest
    steps:
      - uses: deepakputhraya/action-branch-name@master
        with:
          regex: '([a-z])+\/([a-z])+' # Regex the branch should match. This example enforces grouping
          allowed_prefixes: 'feature,stable,fix' # All branches should start with the given prefix
          ignore: master,develop # Ignore exactly matching branch names from convention
          min_length: 5 # Min length of the branch name
          max_length: 20 # Max length of the branch name

License

The scripts and documentation in this project are released under the MIT License

Branch name rules is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to enforce naming convention on branch names
v1.0.0
Latest

Branch name rules is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.