From 01846656d15f7732b1ddfbd6cdf4e20624fa583c Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Sun, 27 Sep 2026 19:14:29 +0300 Subject: [PATCH] feat: host the README badge at commit-check.com/badge.svg The badge a README carries today is a shields.io URL with the Commit Check mark base64-encoded into it: 519 characters to copy, and a third-party request on every page view. conventionalbranch.org/badge.svg already shows the alternative. docs/badge.svg is a hand copy of what shields.io renders for the brand badge -- same size, colors, flat style and textLength, with the mark drawn as vectors instead of an embedded image. Rendered at 6x beside the shields.io original, no pixel differs by more than 8%, so the two look the same in a README row. MkDocs copies it to the site root. Getting started gains a short "Show that you use it" section with the Markdown and reStructuredText snippets. Until now only the READMEs documented the badge. --- docs/badge.svg | 51 +++++++++++++++++++++++++++++++++++++++++ docs/getting-started.md | 21 +++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 docs/badge.svg diff --git a/docs/badge.svg b/docs/badge.svg new file mode 100644 index 0000000..c2b646a --- /dev/null +++ b/docs/badge.svg @@ -0,0 +1,51 @@ + + commit-check: enabled + + + + + + + + + + + + + + + + + + + + + commit-check + enabled + + diff --git a/docs/getting-started.md b/docs/getting-started.md index 68d92d0..7053eb4 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -180,6 +180,27 @@ a release artifact came from this repository's build pipeline: $ gh attestation verify commit_check-*.whl --repo commit-check/commit-check ``` +## Show that you use it + +Put the badge in your README, so contributors know their commits will be +checked before they open a pull request: + +[![commit-check](badge.svg)](https://commit-check.com) + +=== "Markdown" + + ```markdown + [![commit-check](https://commit-check.com/badge.svg)](https://commit-check.com) + ``` + +=== "reStructuredText" + + ```rst + .. image:: https://commit-check.com/badge.svg + :target: https://commit-check.com + :alt: commit-check + ``` + ## Where to go next - **[Where to run it](guides/integrations.md)** — pre-commit hook, GitHub