Skip to content

Commit 223b423

Browse files
committed
Create branch-naming-rules.yml
1 parent 3e81b4c commit 223b423

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Branch Naming Convention'
2+
on:
3+
pull_request:
4+
branches: [master,develop,release/*]
5+
6+
jobs:
7+
branch-naming-rules:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Branch name rules
11+
uses: deepakputhraya/[email protected]
12+
with:
13+
regex: '([a-z])+\/([a-z])+' # Regex the branch should match. This example enforces grouping
14+
allowed_prefixes: 'feature,stable,fix' # All branches should start with the given prefix
15+
ignore: master,develop # Ignore exactly matching branch names from convention
16+
min_length: 5 # Min length of the branch name
17+
max_length: 20 # Max length of the branch name

0 commit comments

Comments
 (0)