---
name: Commisery
on:  # yamllint disable-line rule:truthy
    pull_request:
        branches: [main]

jobs:
    commit-message:
        name: Conventional Commit Message Checker (Commisery)
        runs-on: ubuntu-latest
        steps:
            - name: Check-out the repo under $GITHUB_WORKSPACE
              uses: actions/checkout@v6

            - name: Run Commisery
              uses: tomtom-international/commisery-action@v3
              with:
                  token: ${{ secrets.GITHUB_TOKEN }}
                  # don't validate the pull request title
                  validate-pull-request: false
                  validate-pull-request-title-bump: false
