Check commit messages

August 6, 2025 ยท View on GitHub

This workflow checks the commit messages on a branch to ensure they follow the Conventional Commits specification.

Workflow inputs

InputDescriptionDefault
target_branchThe branch to check against. All commits on the current branch that are not on the target branch will be checked.'main'

Example usage

name: Check commit messages

on:
  pull_request:

concurrency:
  group: pr-${{ github.workflow }}-${{ github.head_ref }}
  cancel-in-progress: true

jobs:
  check_commit_messages:
    uses: dfinity/ci-tools/.github/workflows/check-commit-messages.yaml@main
    with:
      target_branch: 'develop'