-
-
Notifications
You must be signed in to change notification settings - Fork 9
docs: sharpen README first screen — lightweight policy engine framing #418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,10 +39,15 @@ Commit Check | |
| Overview | ||
| -------- | ||
|
|
||
| **Commit Check** (aka **cchk**) is the most comprehensive open-source tool for enforcing Git commit standards — including commit messages, branch naming, author identity, commit signoff, and more — helping teams maintain consistency and compliance across every repository. | ||
| **Commit Check** is a lightweight policy engine for Git commit metadata. | ||
|
|
||
| As a lightweight, free alternative to GitHub Enterprise `Metadata restrictions <https://docs.github.com/en/enterprise-server@3.11/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#metadata-restrictions>`_ | ||
| and Bitbucket's paid `Yet Another Commit Checker <https://marketplace.atlassian.com/apps/1211854/yet-another-commit-checker?tab=overview&hosting=datacenter>`_ plugin, Commit Check integrates DevOps principles and Infrastructure as Code (IaC) practices for a modern workflow. | ||
| It validates commit messages, branch names, author identity, signoff trailers, | ||
| and push safety — using one versioned TOML policy across local hooks, CI, | ||
| GitHub Actions, and AI automation. | ||
|
|
||
| - **One policy file:** ``cchk.toml`` | ||
| - **Multiple enforcement points:** CLI, pre-commit, CI / GitHub Actions | ||
| - **Machine-readable output:** JSON + Python API for automation and AI agents | ||
|
Comment on lines
+48
to
+50
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Verify core differentiators are implemented
# 1. Check for policy file at root
echo "=== 1. Policy file at root ==="
fd -t f "^(cchk|commit-check)\.toml$" --max-depth 1
# 2. Verify no action.yml exists (confirming "CI / GitHub Actions" vs "GitHub Action")
echo -e "\n=== 2. Check for action.yml (should NOT exist) ==="
fd -t f "^action\.ya?ml$" --max-depth 1
if [ $? -ne 0 ]; then
echo "✓ No action.yml found (confirms 'CI / GitHub Actions' wording)"
fi
# 3. Check for --format json implementation
echo -e "\n=== 3. JSON output implementation ==="
rg -n "format.*json|--format|argparse.*format" commit_check/main.py -C3 | head -30
# 4. Verify Python API functions
echo -e "\n=== 4. Python API functions ==="
rg -n "^def (validate_message|validate_branch|validate_author|validate_push|validate_all)" commit_check/api.py -A 1
# 5. Check for pre-commit hooks file
echo -e "\n=== 5. Pre-commit hooks file ==="
fd -t f "pre-commit-hooks\.ya?ml$"
if [ -f .pre-commit-hooks.yaml ]; then
echo "Found .pre-commit-hooks.yaml"
rg "^\s+- id:" .pre-commit-hooks.yaml
fiRepository: commit-check/commit-check Length of output: 1262 Confirm differentiators (policy file, JSON output, Python API, pre-commit hooks) and tighten CI/GitHub Actions wording
🤖 Prompt for AI Agents |
||
|
|
||
| .. image:: https://github.com/commit-check/commit-check/raw/main/docs/demo.gif | ||
| :alt: commit-check demo | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify "one policy file" when two filenames are supported.
Line 48 states "One policy file:
cchk.toml", but lines 111 and 123 in the README mention bothcchk.tomlandcommit-check.tomlas supported configuration filenames. This could confuse readers who might think onlycchk.tomlworks.Consider revising to acknowledge both filenames while emphasizing the single-policy-file concept, e.g., "One policy file:
cchk.toml(orcommit-check.toml)" or "One policy file:cchk.toml*" with a footnote.📝 Proposed clarification
📝 Committable suggestion
🤖 Prompt for AI Agents