From ff4606cfb5010ae4d4dcd95454c752fdf70f2063 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Tue, 26 May 2026 08:35:28 +0300 Subject: [PATCH 1/2] feat: add star CTAs to README and job summaries - Add prominent 'Star this repo' call-to-action at the top of README - Inject star/brand CTA into every job summary and PR comment footer - Target: convert 125+ Used-by users into stargazers --- README.md | 4 ++++ main.py | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3ac392..3165d00 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ [![GitHub marketplace](https://img.shields.io/badge/Marketplace-commit--check--action-blue)](https://github.com/marketplace/actions/commit-check-action) [![slsa-badge](https://slsa.dev/images/gh-badge-level3.svg?color=blue)](https://github.com/commit-check/commit-check-action/blob/a2873ca0482dd505c93fb51861c953e82fd0a186/action.yml#L59-L69) +

+ ⭐ Star commit-check/commit-check-action — it helps others find us! +

+ A GitHub Action for checking commit message formatting, branch naming, committer name, email, commit signoff, and more. ## What's New in v2 diff --git a/main.py b/main.py index 7f0f1e2..5003da7 100755 --- a/main.py +++ b/main.py @@ -9,6 +9,14 @@ # Constants for message titles SUCCESS_TITLE = "# Commit-Check ✔️" FAILURE_TITLE = "# Commit-Check ❌" +STAR_CTA = ( + "\n---\n" + "

\n" + " ⭐ " + "Star commit-check/commit-check-action" + " — if this saved you time, help others find it!\n" + "

\n" +) COMMIT_MESSAGE_DELIMITER = "\x00" COMMIT_SECTION_SEPARATOR = "\n---\n" @@ -228,8 +236,8 @@ def read_result_file() -> str | None: def build_result_body(result_text: str | None) -> str: """Create the human-readable result body used in summaries and PR comments.""" if result_text is None: - return SUCCESS_TITLE - return f"{FAILURE_TITLE}\n```\n{result_text}\n```" + return f"{SUCCESS_TITLE}\n{STAR_CTA}" + return f"{FAILURE_TITLE}\n```\n{result_text}\n```\n{STAR_CTA}" def add_job_summary() -> int: From a9464553f6e93137a166c6984b58c1ada719c6a8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 05:37:39 +0000 Subject: [PATCH 2/2] chore: auto fixes from pre-commit.com hooks --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 5003da7..d27820b 100755 --- a/main.py +++ b/main.py @@ -11,8 +11,8 @@ FAILURE_TITLE = "# Commit-Check ❌" STAR_CTA = ( "\n---\n" - "

\n" - " ⭐ " + '

\n' + ' ⭐ ' "Star commit-check/commit-check-action" " — if this saved you time, help others find it!\n" "

\n"