Skip to content

feat(cli)!: replace commands monolith with module-per-command archite… #42

feat(cli)!: replace commands monolith with module-per-command archite…

feat(cli)!: replace commands monolith with module-per-command archite… #42

Workflow file for this run

# Commit workflow.
# Purpose: fail fast on branch pushes when commit messages do not match
# repository commit conventions.
name: Commit
on:
# Validate commits on branch pushes before PR merge.
push:
# Mainline and merge-queue refs are validated by PR/release workflows.
branches-ignore:
- main
- master
- merge/**
- gh-readonly-queue/**
concurrency:
# Cancel superseded commit-message checks on the same branch.
group: commit-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
# Read-only is enough for commit metadata checks.
contents: read
jobs:
validate-commit-messages:
# Single gate that validates message format/types and custom scope policy.
name: Validate Commit Messages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
# Full history is required to inspect the full pushed commit range.
fetch-depth: 0
- name: Validate commits with commit-check
uses: commit-check/commit-check-action@v2
with:
# Commit and branch policy is read from cchk.toml in repo root.
message: true
branch: true
author-name: false
author-email: false
job-summary: true
pr-comments: false