summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/git-commit-message-style.yml
blob: ddb55b4160de4f8578d72f29d529e1f4d6a2f780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
name: Git - Check commit message style
on:
  push:
  workflow_dispatch:

jobs:
  check-commit-message-style:
    name: Check commit message style
    runs-on: ubuntu-latest
    steps:
      - name: Check against guidlines
        uses: mristin/opinionated-commit-message@v3.1.0
        with:
          # Commit messages are allowed to be subject only, no body
          allow-one-liners: 'true'
          # This action defaults to 50 char subjects, but 74 is fine.
          max-subject-line-length: '74'