mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-21 02:09:26 +02:00
24 lines
752 B
YAML
24 lines
752 B
YAML
name: '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 for a commit prefix
|
|
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee
|
|
with:
|
|
accessToken: ${{ secrets.GITHUB_TOKEN }}
|
|
pattern: '^[A-Z0-9][A-Za-z0-9 \["\/\\-]+:.+'
|
|
excludeTitle: true
|
|
excludeDescription: true
|
|
checkAllCommitMessages: true
|
|
error: 'Commit messages should be capitalized, start with a prefix, delimited by a colon. Example: "Debugger: Add a paste bytes option to the memory view"'
|