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..d27820b 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: