add action related endpoints #166
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-z0-9]+-*[a-z0-9]+)+' # Regex the branch should match. | |
allowed_prefixes: 'feature,bugfix,refactor' # All branches should start with the given prefix | |
ignore: main # Ignore exactly matching branch names from convention | |
min_length: 3 # Min length of the branch name | |
max_length: 128 # Max length of the branch name |