Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
alert-triangle

GitHub Action

Pull Request title rules

v1.0.0

Pull Request title rules

alert-triangle

Pull Request title rules

Github action to enforce Pull Request title conventions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Pull Request title rules

uses: deepakputhraya/action-pr-title@v1.0.0

Learn more about this action in deepakputhraya/action-pr-title

Choose a version

Branch naming rules

GitHub Actions status

Github action to enforce Pull Request title conventions

Usage

See action.yml

steps:
- uses: deepakputhraya/action-pr-title@master
  with:
    regex: '([a-z])+\/([a-z])+' # Regex the title should match.
    allowed_prefixes: 'feature,stable,fix' # title should start with the given prefix
    prefix_case_sensitive: false # title prefix are case insensitive
    min_length: 5 # Min length of the title
    max_length: 20 # Max length of the title

License

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