-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
732a174
commit eb7ad88
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Check naming policy | ||
run-name: Check naming policy for ${{ github.ref }} | ||
|
||
on: [create, pull_request] | ||
|
||
jobs: | ||
branch-naming-rules: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: deepakputhraya/action-branch-name@master | ||
with: | ||
regex: '([a-z])+\/(\d+)-([a-z])+' # Regex the branch should match. This example enforces grouping | ||
allowed_prefixes: 'feat,fix,refactor,docs' # All branches should start with the given prefix | ||
ignore: main,dev # Ignore exactly matching branch names from convention | ||
max_length: 100 # Max length of the branch name |