Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 981 Bytes

File metadata and controls

28 lines (20 loc) · 981 Bytes

Check commit messages

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

Workflow inputs

Input Description Default
target_branch The 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'