Skip to content

[INVALID] Make sure latest commit message #329

[INVALID] Make sure latest commit message

[INVALID] Make sure latest commit message #329

name: GIT commit message check
on:
push:
branches-ignore:
- 'l10n_master'
tags-ignore:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
checkout-code:
uses: actions/checkout@v4

Check failure on line 18 in .github/workflows/commit-message.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/commit-message.yml

Invalid workflow file

invalid value workflow reference: references to workflows must be rooted in '.github/workflows'
with:
ref: ${{ github.event.pull_request.head.sha }}
check-commit-message:
name: Check commit message
needs: checkout-code
runs-on: ubuntu-latest
steps:
- name: Check type prefix
uses: gsactions/commit-message-checker@v2
with:
pattern: '^(?:\[!!!\])?\[(BUILD|TASK|BUGFIX|FIX|FEATURE|DOC|CLEANUP|RELEASE){1}\] .+$'
flags: 'gm'
error: 'The first line needs to start with a commit type like "[BUGFIX]".'
- name: Check message format
uses: gsactions/commit-message-checker@v1
with:
pattern: '^(?:\[!!!\])?\[[A-Z]+\] [A-Z]+.+$'
flags: 'gm'
error: 'The actual message after the commit type should start with a uppercase letter.'
- name: Check line length
uses: gsactions/commit-message-checker@v2
with:
pattern: '^.{10,72}$'
flags: 'gm'
error: 'The maximum line length of 72 characters is exceeded.'