Lint your git branch names using github action.
name: Branchlint
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Lint branch name
uses: lekterable/[email protected]
with:
allowed: |
development
/(epic|feat|fix|chore)/DEV-\d{4}/i
allowed - (required) a list of allowed branch names separated by a new line
NOTE: you can use both strings and valid regular expressions.