Skip to content

Commit e86d40e

Browse files
committed
feat: add status marks for the Action's report
The mark in four status colours (passed, failed, warned, skipped), as a tile for a report heading and without the tile for a single line.
1 parent e8435e1 commit e86d40e

18 files changed

Lines changed: 62 additions & 0 deletions

‎branding/README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ README badge and the social previews, so they read as one project.
2424
| `social-preview-<repo>.png` | One per repository, with that repository's address and a panel showing what it does. |
2525
| `favicon.svg` / `.png` | The small-size cut: at 16–32 px only the thickened tick remains. |
2626
| `badge-logo.svg` | The logo inside the README badge (below). |
27+
| `status/<state>.png` / `.svg` | The mark in a status colour, for the heading of a report: `passed`, `failed`, `warned`, `skipped`. Shown at 24 px. |
28+
| `status/line-<state>.png` / `.svg` | The same four without the tile, for one line of a report. Shown at 16 px. |
29+
30+
The status marks keep the Ink tile and the commit on its history line; only
31+
the verdict changes: a green tick, a red cross, an amber exclamation mark, a
32+
grey dash. [commit-check-action](https://github.com/commit-check/commit-check-action)
33+
links to the PNGs on `main` from every job summary and pull request comment,
34+
so renaming or moving them breaks reports that are already posted.
2735

2836
Upload a social preview per repository under **Settings → Social preview**;
2937
GitHub has no API for it, so nothing does that for you.

‎branding/src/render.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ rsvg-convert -w 1024 -h 1024 "$out/avatar.svg" -o "$out/avatar.png"
2424
rsvg-convert -w 512 -h 512 "$out/logo-mark.svg" -o "$out/logo-mark.png"
2525
rsvg-convert -w 256 -h 256 "$out/favicon.svg" -o "$out/favicon.png"
2626

27+
# The status marks the Action's report shows: tiles at 4x of 24 px, line marks at 4x of 16 px.
28+
for state in passed failed warned skipped; do
29+
rsvg-convert -w 96 -h 96 "$out/status/$state.svg" -o "$out/status/$state.png"
30+
rsvg-convert -w 64 -h 64 "$out/status/line-$state.svg" -o "$out/status/line-$state.png"
31+
done
32+
2733
# The lockup, trimmed to its ink with an even margin.
2834
for theme in light dark; do
2935
name=logo; [ "$theme" = dark ] && name=logo-dark

‎branding/status/failed.png‎

3.08 KB
Loading

‎branding/status/failed.svg‎

Lines changed: 7 additions & 0 deletions
Loading

‎branding/status/line-failed.png‎

1.56 KB
Loading

‎branding/status/line-failed.svg‎

Lines changed: 5 additions & 0 deletions
Loading

‎branding/status/line-passed.png‎

1.34 KB
Loading

‎branding/status/line-passed.svg‎

Lines changed: 5 additions & 0 deletions
Loading

‎branding/status/line-skipped.png‎

867 Bytes
Loading

‎branding/status/line-skipped.svg‎

Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)