Changes
- We have added support for
disallowed_prefixes
. This is the opposite ofallowed_prefixes
. The configuration is similar toallowed_prefixes
. - 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
.