Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ ran.

Passing runs stay to one line, with the detail folded away:

> <img src="https://raw.githubusercontent.com/commit-check/commit-check-action/main/assets/logo.png" width="20" align="top" alt=""> **Commit Check**
> <img src="https://raw.githubusercontent.com/commit-check/commit-check-action/main/assets/logo.png" width="24" align="top" alt=""> **Commit Check**
>
> ✅ **All 3 checks passed**
>
Expand All @@ -266,7 +266,7 @@ Passing runs stay to one line, with the detail folded away:
Failures open with a count, then a table of only the scopes that failed — every
rule ID links to its documentation — with the full tree still one click away:

> <img src="https://raw.githubusercontent.com/commit-check/commit-check-action/main/assets/logo.png" width="20" align="top" alt=""> **Commit Check**
> <img src="https://raw.githubusercontent.com/commit-check/commit-check-action/main/assets/logo.png" width="24" align="top" alt=""> **Commit Check**
>
> ❌ **2 of 4 checks failed**
>
Expand Down
Binary file modified assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,21 @@
# cross-repository dependency, and as PNG rather than SVG because GitHub proxies
# comment images through camo, which handles SVG unreliably. Point this at a
# single org-wide asset if the other tools grow the same header.
#
# This is the org's *filled* mark (branding/avatar.png), not the transparent
# logo-mark. At this size a stroke has almost no visual weight -- the wordless
# mark rendered as a faint tick, worst on dark backgrounds -- while a filled
# tile holds up. It is the asset the branding README calls out as legible
# small, and the width below matches the h2 cap height so the icon is not
# smaller than the words next to it.
LOGO_URL = (
"https://raw.githubusercontent.com/commit-check/commit-check-action/main/"
"assets/logo.png"
)

#: Report heading. h2 rather than h1: this renders inside a PR comment, where an
#: h1 is louder than anything else on the page.
REPORT_TITLE = f'## <img src="{LOGO_URL}" width="20" align="top" alt=""> Commit Check'
REPORT_TITLE = f'## <img src="{LOGO_URL}" width="24" align="top" alt=""> Commit Check'

#: Prefixes of report bodies written by earlier versions, kept so the first run
#: after upgrading adopts the existing comment instead of posting a second one.
Expand Down Expand Up @@ -567,7 +574,7 @@ def _scope_value(scope: ScopeResult, max_len: int = 60) -> str:
# Success:
#
# <!-- commit-check-action -->
# ## <img src="..." width="20" align="top" alt=""> Commit Check
# ## <img src="..." width="24" align="top" alt=""> Commit Check
#
# ✅ **All 5 checks passed**
#
Expand All @@ -592,7 +599,7 @@ def _scope_value(scope: ScopeResult, max_len: int = 60) -> str:
# Failure:
#
# <!-- commit-check-action -->
# ## <img src="..." width="20" align="top" alt=""> Commit Check
# ## <img src="..." width="24" align="top" alt=""> Commit Check
#
# ❌ **1 of 5 checks failed**
#
Expand Down