Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions .github/workflows/semantic-commit.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
name: 'PR and Commit Message Check'

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Comment thread
FabianDevel marked this conversation as resolved.
cancel-in-progress: true

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 }}
uses: Infomaniak/.github/.github/workflows/semantic-commit.yml@v2
Comment thread
FabianDevel marked this conversation as resolved.
secrets: inherit
Comment thread
FabianDevel marked this conversation as resolved.
Comment thread
FabianDevel marked this conversation as resolved.
Loading