Skip to content

Commit

Permalink
Create lint-branch.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
salkhwlani authored Jul 18, 2024
1 parent 27ac00f commit a4892bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint Branch
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
name: Validate branch name
steps:
- name: Lint branch name
uses: lekterable/[email protected]
with:
allowed: |
/(bugfix|hotfix|feature)\/[a-zA-Z]+-\d{1,10}(?:-[^\/]+)?$/i
errorMessage: 'The allowed prefixs for branch name are (bugfix|hotfix|feature)'
startAfter: '2023-12-03 00:00:00'

0 comments on commit a4892bc

Please sign in to comment.