Repository navigation
Commit 46b4737
fix: print the failure reason once and keep the log tree intact
The job log showed the same sentence twice in a row under every failure:
Error: Commit message should use imperative mood (...)
value: feat: settle the report format ...
Commit message should use imperative mood (...)
The first line was an ::error workflow command carrying the first line of the
error, the third was the listing printing the whole error underneath it.
The annotation also broke the listing it sat inside. An ::error renders as a
line of its own wherever it appears, so printing one between the ✖ scope line
and its details split the indented tree apart. And its title= — the only place
the rule ID was written — is shown in the annotations UI, never inline, so the
visible line lost the rule ID entirely.
Annotations are now emitted after every group, one per failure, with the scope
in the message since the title cannot carry it. The listing keeps the reason,
the rule ID, the value, the suggestion and the docs link, indented under the
scope that failed. Passing scopes show the value that was checked, which the
Markdown report already did.
Also drops the "(0 failures)" that unparsable output rendered next to its ✖:
there is no check list to count, and zero next to a cross reads as a
contradiction.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U9zFxq8V4qxG4aMzJhGBFn1 parent a280b6d commit 46b4737
2 files changed
Lines changed: 102 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
370 | 379 | | |
371 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
372 | 392 | | |
373 | 393 | | |
374 | 394 | | |
| 395 | + | |
| 396 | + | |
375 | 397 | | |
376 | | - | |
| 398 | + | |
377 | 399 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | 400 | | |
382 | 401 | | |
| 402 | + | |
383 | 403 | | |
384 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
385 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
386 | 412 | | |
387 | | - | |
| 413 | + | |
388 | 414 | | |
389 | | - | |
390 | | - | |
| 415 | + | |
391 | 416 | | |
392 | | - | |
| 417 | + | |
393 | 418 | | |
394 | | - | |
| 419 | + | |
| 420 | + | |
395 | 421 | | |
396 | | - | |
| 422 | + | |
397 | 423 | | |
398 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
399 | 427 | | |
400 | 428 | | |
401 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
402 | 436 | | |
403 | 437 | | |
404 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 611 | + | |
616 | 612 | | |
617 | 613 | | |
618 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
619 | 663 | | |
620 | 664 | | |
621 | 665 | | |
| |||
632 | 676 | | |
633 | 677 | | |
634 | 678 | | |
635 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
636 | 683 | | |
| 684 | + | |
637 | 685 | | |
638 | 686 | | |
639 | 687 | | |
| |||
0 commit comments