You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit-check outputs human-readable ASCII art, making it hard for AI agents and automation toolchains to consume results programmatically. This adds two complementary AI-native interfaces without breaking any existing behaviour.
No successful run was found on main (5bb84b6) during the generation of this report, so c978951 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
CopilotAI
changed the title
[WIP] Enhance project for AI-native integration
feat: make commit-check AI-native with JSON output and Python API
Apr 9, 2026
❌ Patch coverage is 97.05882% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.45%. Comparing base (5bb84b6) to head (3913f25). ⚠️ Report is 1 commits behind head on main.
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
major-rfeFor changelog: Major enhancement. Will be highlighted on the topminorA minor version bump
2 participants
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.
commit-check outputs human-readable ASCII art, making it hard for AI agents and automation toolchains to consume results programmatically. This adds two complementary AI-native interfaces without breaking any existing behaviour.
--format jsonCLI flagSuppresses decorative terminal output; emits structured JSON to stdout. Exit code unchanged.
{ "status": "fail", "checks": [ { "check": "message", "status": "fail", "value": "bad commit", "error": "The commit message should follow Conventional Commits…", "suggest": "Use <type>(<scope>): <description>…" } ] }commit_check/api.py— in-process Python APIValidates commits without spawning a subprocess. All functions return the same
{"status", "checks"}schema.API surface:
validate_message,validate_branch,validate_author,validate_all— all accept an optionalconfigdict to override defaults inline.Engine changes (
commit_check/engine.py)CheckOutcomedataclass — per-rule structured result (check,status,value,error,suggest)ValidationEngine.validate_all_detailed()— runs all validators with output suppressed, returnslist[CheckOutcome]BaseValidator._suppress_output/_last_failure— allows silent failure capture without changing validator call signatures