You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The commit message should follow Conventional Commits.
298
318
> Suggest: Use <type>(<scope>): <description>
299
319
> Branch
300
320
> ✖ Branch (1 failure)
301
321
> CC201 branch
302
-
> value: my-changes
322
+
> value: Feature/Add-Login
303
323
> The branch should follow Conventional Branch.
304
-
> Suggest: Use <type>/<description> with allowed types
324
+
> Suggest: Rename the branch to "feature/Add-Login" (git branch -m feature/Add-Login)
325
+
> Fix: feature/Add-Login
305
326
> ```
306
327
>
307
328
> </details>
@@ -312,6 +333,26 @@ A scope is one thing that was checked — a commit message, the branch, the auth
312
333
— not one rule evaluation, so the total matches the ✔/✖ lines you can count and
313
334
does not grow with the number of rules in your config.
314
335
336
+
A commit scope names its commit by short hash, and the table row links to it,
337
+
so a reviewer can jump from a failed row straight to the offending commit.
338
+
`Fix:`is the corrected text commit-check proposes whenever the correction is
339
+
mechanical (a capitalised subject, a dropped WIP marker, a missing sign-off
340
+
trailer); when the suggestion is nothing more than "use the fix", only `Fix:`
341
+
is shown.
342
+
343
+
The step log prints the same tree, then one annotation per finding — shown in
344
+
the run summary and on the Files changed tab — whose message carries the
345
+
commit, the checked value, the suggestion and the fix on separate lines:
346
+
347
+
```text
348
+
::error title=CC001 message::Commit 2/2 (5584f46): The commit message should follow Conventional Commits.%0Avalue: bad msg%0ASuggest: Use <type>(<scope>): <description>
349
+
::error title=CC201 branch::Branch: The branch should follow Conventional Branch.%0Avalue: Feature/Add-Login%0ASuggest: Rename the branch to "feature/Add-Login" (git branch -m feature/Add-Login)%0AFix: feature/Add-Login
350
+
✖ commit-check: 2 of 4 checks failed
351
+
```
352
+
353
+
The verdict is a plain line rather than another `::error`, so the run's error
354
+
count equals the number of findings.
355
+
315
356
### Skipped Job Summary
316
357
317
358
Some runs validate nothing at all — most commonly when the commit author is
@@ -383,7 +424,8 @@ A warned scope is marked `⚠`, never `✖`, and a real failure elsewhere still
383
424
fails the run — the verdict then reads `❌ **N of M checks failed**, K
384
425
warnings` and both tables appear. In the step log, a warning becomes a
385
426
`::warning`annotation rather than `::error`, so it never counts toward the
386
-
run's error count.
427
+
run's error count. The [`result`](#result) output reports the run as
428
+
`"status": "warn"`, with exit code 0.
387
429
388
430
This needs commit-check 2.17.0 or newer, which reports `"status": "warn"` in
389
431
its JSON. Against an older engine, or a config with no `warn` list, no check
0 commit comments