Skip to content

Commit

Permalink
Merge pull request #207 from Infomaniak/conventional-commits
Browse files Browse the repository at this point in the history
ci: Add conventional commits
  • Loading branch information
KevinBoulongne authored Nov 25, 2024
2 parents 5ceda95 + af145d1 commit a4239ba
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 a4239ba

Please sign in to comment.