We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e81b4c commit 223b423Copy full SHA for 223b423
.github/workflows/branch-naming-rules.yml
@@ -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/action-branch-name@v1.0.0
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