Skip to content

Branch Naming Policy Action #34

Branch Naming Policy Action

Branch Naming Policy Action #34

name: Branch Naming Policy Action
on:
create:
delete:
pull_request:
branches:
- main
jobs:
branch-naming-policy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Branch Naming Policy Action
uses: nicklegan/[email protected]
if: github.ref_type == 'branch' || github.ref_type == 'pull_request'
with:
token: ${{ secrets.GITHUB_TOKEN }}
regex: '^(feat|issue|fix|exp)\/([a-z0-9]+)\/([0-9]+)-([a-z0-9]+)'
# flags: i
# token: ${{ secrets.REPO_TOKEN }}
# delete: true