Skip to content

v1.0.1 - Support Disallow prefixes & Bug fix

Compare
Choose a tag to compare
@deepakputhraya deepakputhraya released this 03 Oct 12:43
· 2 commits to master since this release
c21a28d

Changes

  1. We have added support for disallowed_prefixes. This is the opposite of allowed_prefixes. The configuration is similar to allowed_prefixes.
  2. Fixed the issue with action not using latest PR title in checks.

The new configuration looks like this -

steps:
- uses: deepakputhraya/action-pr-title@master
  with:
    regex: '([a-z])+\/([a-z])+' # Regex the title should match.
    allowed_prefixes: 'feature,fix,JIRA' # title should start with the given prefix
    disallowed_prefixes: 'feat/,hotfix' # title should not 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
    github_token: ${{ github.token }} # Default: ${{ github.token }}

The YAML changes are backwards compatible with previous versions. Users can safely upgrade to this version from v1.0.0.