Skip to content

Commit

Permalink
ci: Add conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 25, 2024
1 parent 5ceda95 commit af145d1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/semantic-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'PR and Commit Message Check'
on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize

jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Check Commit Message
uses: gsactions/commit-message-checker@v2
with:
pattern: '^Merge .+|(^(feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+)'
error: 'Commit messages and PR title should match conventional commit convention and start with an uppercase.'
excludeDescription: 'true'
excludeTitle: 'false'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit af145d1

Please sign in to comment.