Skip to content

Commit

Permalink
enhance(ci): include PR title validation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jan 16, 2024
1 parent a4d640c commit 882ba5c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr-title-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# trigger on pull_request events of the opened & edited type.
on:
pull_request:
types: [ opened, edited ]

# pipeline to execute
jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: validate
run: |
echo "${{ github.event.pull_request.title }}" | grep -Eq '^(feat|fix|chore|refactor|enhance)\(.*\):.*$' && (echo "Pass"; exit 0) || (echo "Incorrect Format"; exit 1)

0 comments on commit 882ba5c

Please sign in to comment.