Skip to content

Commit

Permalink
feat: add new action #2
Browse files Browse the repository at this point in the history
  • Loading branch information
lelouvincx committed Dec 23, 2023
1 parent 732a174 commit eb7ad88
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/naming-policy.yml
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

0 comments on commit eb7ad88

Please sign in to comment.