diff --git a/docs/index.md b/docs/index.md index d1d6f2b..3613ae2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -137,13 +137,13 @@ conventional_branch = true

commit-check-action

Every pull request, checked and explained.

-

The Action reports where your reviewers already look — a PR comment, the job summary, inline annotations — and exposes a JSON result the next step can gate on.

+

The Action reports where your reviewers already look — a PR comment, the job summary, annotations on the run — and exposes a JSON result the next step can gate on.

@@ -169,23 +169,27 @@ conventional_branch = true

github-actionsbot commentededited

-

Commit Check

-

2 of 5 checks failed

- - - - - - -
ScopeChecked valueFailed checks
Commit 2/3 (5584f46)bad msgCC001 message
Commit 3/3 (37d6def)Fix: handle empty passwordCC001 message
-

▸ Show all 5 checks

+

Commit Check failed

+

Pull request: passedCommits: 2 of 3 failedBranch: passed

+
+
@@ 5584f46 @@
+
- bad msg
+
# Use <type>(<scope>): <description>
+
@@ 37d6def @@
+
- Fix: handle empty password
+
+ fix: handle empty password
+
+ +

▸ How to fix

+

▸ All 5 checks

-

All 5 checks passed

-

▸ Show all 5 checks

+

Commit Check passed

+

Pull request: passedCommits: 3 passedBranch: passed

+

▸ All 5 checks

-

Rules reference

+

Checked by Commit Check · Rules · Check before you push

@@ -202,28 +206,36 @@ conventional_branch = true
-

Triggered via pull_requestalex pushed 5584f46

StatusFailure

Total duration14s

commit-check summary

-

Commit Check

-

2 of 5 checks failed

-

▾ Show all 5 checks

-
-
Commit message
-
✔ PR title (feat: add login page)
-
✔ Commit 1/3 (d87faca) (feat: add login page)
-
✖ Commit 2/3 (5584f46) (1 failure)
-
CC001 message
-
value: bad msg
-
Suggest: Use <type>(<scope>): <description>, where <type> is one of: feat, fix, docs, style, refactor, test, chore, perf, build, ci
-
✖ Commit 3/3 (37d6def) (1 failure)
-
CC001 message
-
value: Fix: handle empty password
-
Fix: fix: handle empty password
-
Branch
-
✔ Branch (feature/add-login)
+

Commit Check failed

+

Pull request: passedCommits: 2 of 3 failedBranch: passed

+
+
@@ 5584f46 @@
+
- bad msg
+
# Use <type>(<scope>): <description>
+
@@ 37d6def @@
+
- Fix: handle empty password
+
+ fix: handle empty password
+ +

▾ How to fix

+
+

With an AI coding agent. Paste this prompt:

+
+
Fix these Commit Check findings without changing any code:
+
- Commit 5584f46 "bad msg": Use <type>(<scope>): <description>
+
- Commit 37d6def: change "Fix: handle empty password" to "fix: handle empty password"
+
+

Commit messages. Reword them, then force-push:

+
+
git rebase -i 5584f46~1 # change "pick" to "reword" on the commits above
+
git push --force-with-lease
+
+
+

▸ All 5 checks

+

Checked by Commit Check · Rules · Check before you push

@@ -277,8 +289,8 @@ conventional_branch = true

Annotations 2 errors

-

CC001 message

Commit 2/3 (5584f46): The commit message should follow Conventional Commits.
value: bad msg
Suggest: Use <type>(<scope>): <description>, where <type> is one of: feat, fix, docs, …

-

CC001 message

Commit 3/3 (37d6def): The commit message should follow Conventional Commits.
value: Fix: handle empty password
Fix: fix: handle empty password

+

CC001 message

Commit 2/3 (5584f46) "bad msg": Use <type>(<scope>): <description>
The commit message should follow Conventional Commits.

+

CC001 message

Commit 3/3 (37d6def): change "Fix: handle empty password" to "fix: handle empty password"
The commit message should follow Conventional Commits.

diff --git a/docs/stylesheets/landing.css b/docs/stylesheets/landing.css index c329b24..f8fee75 100644 --- a/docs/stylesheets/landing.css +++ b/docs/stylesheets/landing.css @@ -948,8 +948,10 @@ box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); } +/* As tall as the tallest panel, so the page below does not move when the + tabs cycle or the report in the comment turns from failed to passed. */ .cc-demo.is-ready .cc-window { - min-height: 600px; + min-height: 722px; } .cc-window .cc-dim { @@ -1217,65 +1219,119 @@ .cc-comment__body { display: flex; flex-direction: column; - gap: 12px; - padding: 16px 18px 14px; + gap: 10px; + padding: 14px 18px 12px; } .cc-comment__body > div { display: flex; flex-direction: column; - gap: 12px; + gap: 10px; border-radius: 8px; } .md-typeset .cc-report__title { + display: flex; + align-items: center; + gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #e3e9ed; font-size: 19px; font-weight: 700; } -.md-typeset .cc-verdict { +/* The status marks the Action links to (commit-check/.github, + branding/status): the tile for the heading, the bare mark for a line. */ +.cc-smark { + flex-shrink: 0; + width: 22px; + height: 22px; +} + +.cc-lmark { + flex-shrink: 0; + width: 16px; + height: 16px; +} + +.md-typeset .cc-groups { + display: flex; + flex-direction: column; + gap: 2px; + font-size: 13.5px; +} + +.cc-groups > span { display: flex; align-items: center; - gap: 8px; - font-size: 15px; - font-weight: 700; + gap: 7px; } -.md-typeset .cc-table { - width: 100%; - border: 1px solid var(--w-line); +/* A ```diff block as GitHub colours it: removed, added, hunk, comment. */ +.cc-diff { + padding: 6px 0; border-radius: 8px; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; + background: var(--w-soft); + font-family: var(--cc-mono); + font-size: 12.5px; + line-height: 19px; +} + +.cc-diff > div { + padding: 0 14px; + white-space: pre-wrap; + overflow-wrap: anywhere; +} + +.cc-diff__hunk { + font-weight: 700; + color: #8250df; +} + +.cc-diff__del { + background: #ffebe9; + color: #82071e; +} + +.cc-diff__add { + background: #dafbe1; + color: #116329; +} + +.cc-diff__note { + color: #59636e; +} + +/* The opened "How to fix" fold: a sentence, then the block to copy. */ +.cc-howto { + display: flex; + flex-direction: column; + gap: 8px; font-size: 13.5px; } -.md-typeset .cc-table th, -.md-typeset .cc-table td { - padding: 9px 12px; - border-bottom: 1px solid #e8edf0; - text-align: left; - vertical-align: top; +.cc-howto .cc-tree { + padding: 9px 14px; } -.md-typeset .cc-table th { - background: var(--w-soft); - font-weight: 600; +/* The prompt and the commands are long lines: wrap them at every width, so + a narrow window never cuts their end off. */ +.cc-howto .cc-tree > div { + white-space: pre-wrap; + overflow-wrap: anywhere; } -.md-typeset .cc-table tr:last-child td { - border-bottom: 0; +.md-typeset .cc-report__links { + font-size: 12px; + color: var(--w-muted); } -.md-typeset .cc-table code { +.md-typeset .cc-report__links code { padding: 1px 5px; border-radius: 4px; background: #f1f4f6; font-family: var(--cc-mono); - font-size: 12.5px; + font-size: 11.5px; } .cc-lnk { @@ -1291,10 +1347,18 @@ color: var(--w-muted); } +.md-typeset .cc-fold b { + color: var(--w-text); +} + +/* Two folds in a row sit closer than the report's other parts. */ +.md-typeset .cc-fold + .cc-fold { + margin-top: -5px; +} + .md-typeset .cc-report__foot { - font-size: 12.5px; - font-style: italic; - color: #176b89; + font-size: 12px; + color: var(--w-muted); } .md-typeset .cc-event { @@ -1375,28 +1439,6 @@ padding: 20px 24px; } -.cc-run__meta { - display: flex; - flex-wrap: wrap; - gap: 8px 36px; - padding: 12px 16px; - border: 1px solid var(--w-line); - border-radius: 10px; - background: #ffffff; -} - -.md-typeset .cc-run__meta p { - display: flex; - flex-direction: column; - font-size: 13px; - color: #5b6d7a; -} - -.cc-run__meta b { - font-size: 14px; - color: var(--w-text); -} - .cc-card { border: 1px solid var(--w-line); border-radius: 10px; @@ -2360,27 +2402,6 @@ margin-left: 0; } - /* The report table turns into one block per failing scope. */ - .md-typeset .cc-table thead { - display: none; - } - - .md-typeset .cc-table tr { - display: flex; - flex-direction: column; - padding: 8px 10px; - border-bottom: 1px solid #e8edf0; - } - - .md-typeset .cc-table tr:last-child { - border-bottom: 0; - } - - .md-typeset .cc-table td { - padding: 1px 0; - border: 0; - } - .cc-tree { font-size: 11.5px; line-height: 18px;