Skip to content

docs: link the README's Python API note to its page on the site - #590

Merged
shenxianpeng merged 1 commit into
mainfrom
docs/link-python-api-page
Sep 27, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
docs/link-python-api-page

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

commit-check.com/guides/python-api/ is live (commit-check/commit-check.com#47), so this points the README's short Python API note at it.

The note now also:

  • names all six functions. It listed three besides validate_message; validate_tag and validate_push were missing.
  • says that the API does not read cchk.toml, so the policy has to be passed as a config dict. This is the difference from the CLI that a caller is most likely to trip over.

I checked that the page returns 200 with the title Python API - Commit Check, and that the function names match dir(commit_check.api) in 2.18.1. The pre-commit pin is still v2.18.1, the version on PyPI.

Summary by CodeRabbit

  • Documentation
    • Expanded the Python API reference to include tag and push validation alongside existing validation functions.
    • Clarified that these functions return a consistent result format, accept policy through a configuration dictionary, and do not read CLI configuration files.

commit-check.com/guides/python-api/ now documents commit_check.api
(commit-check/commit-check.com#47), so the README's short note points
there. It also names all six functions -- validate_tag and validate_push
were missing -- and says the one thing a caller is most likely to get
wrong: the API does not read cchk.toml, so the policy has to be passed
as a config dict.
@shenxianpeng
shenxianpeng requested a review from a team as a code owner September 27, 2026 17:55
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 27, 2026
@coderabbitai

coderabbitai Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 2a1d226d-f37d-4f14-a015-0a4728de6492

📥 Commits

Reviewing files that changed from the base of the PR and between 84d3b94 and 9ca4379.

📒 Files selected for processing (1)
  • README.md
 ______________________________________________
< Looking for trouble in all the right places. >
 ----------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@shenxianpeng
shenxianpeng merged commit a722d20 into main Sep 27, 2026
9 of 10 checks passed
@shenxianpeng
shenxianpeng deleted the docs/link-python-api-page branch September 27, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant