Skip to content

Commit

Permalink
build: Add github workflow to check commit message format
Browse files Browse the repository at this point in the history
Adds automation to confirm the commit messages align with the contributing guidelines.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
  • Loading branch information
pjbgf committed Oct 9, 2023
1 parent 771a3eb commit daf0bfd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'PR Validation'

on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize

permissions:
contents: read

jobs:
check-commit-message:
name: Check Commit Messages
runs-on: ubuntu-latest
steps:
- name: Check Package Prefix
uses: gsactions/commit-message-checker@v2
with:
pattern: '^(\*|plumbing|utils|config|_examples|internal|storage|cli|build): .+'
error: 'Commit message(s) does not align with CONTRIBUTING.md'
excludeDescription: 'true'
excludeTitle: 'true'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit daf0bfd

Please sign in to comment.