name: 'Check commit message style'
on:
  pull_request:
    types:
      - opened
      - edited
      - reopened
      - synchronize
  push:

jobs:
  check-commit-message-style:
    name: Check commit message style
    runs-on: ubuntu-latest
    steps:
      - name: Check
        uses: mristin/opinionated-commit-message@v3.0.0
        with:
          allow-one-liners: 'true'
          max-subject-line-length: '72'
          enforce-sign-off: 'true'

Add GitHub Actions workflow to check style of commit messages
Add GitHub Actions workflow to check style of commit messages

Messages must adhere to the style mentioned in CONTRIBUTING.md.

Signed-off-by: onox <34c1d3d2d1347bea60a26f46574de21a7a79b6d5@gmail.com>
