Repository navigation
feat: show failures as a diff under a status heading, with how to fix them - #336
Conversation
… them The job summary and PR comment open with the Commit Check mark in the status colour and "Commit Check failed" or "passed", then one line per group. What failed is a diff block: red for what was found, green for the text to write, taken from the CLI's fix. A folded "How to fix" holds a prompt for an AI coding agent and the git commands for this run's failures, and the footer links to the pre-commit hook guide. The step log folds each group under a title that carries its result, and each annotation's first line names what to change, since the run page shows only that line. Annotations carry no file, so they show on the run page, not on the Files changed tab: the README, the fork-PR warning and its guide said otherwise.
Walkthrough
Merge Risk:
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #336 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 1 1
Lines 849 1003 +154
==========================================
+ Hits 849 1003 +154
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The report is what a contributor sees when a check blocks them, and today it answers "which rule" before "what do I change". This reworks the job summary, the PR comment, the step log and the annotations around that question. Checks, exit codes, inputs and the
resultoutput are unchanged.Needs commit-check/.github#77 merged first: the status marks are static PNGs served from that repository. Until then the report shows their alt text (✔ ✖ ⚠ ⊘) in their place.
PR comment and job summary
diffblock: red is what was found, green is the text to write (from the CLI'sfix), a#line is advice when there is no literal fix. More than seven failing items: five are shown, the rest folded.Ten failing commits:
Passing:
The two folded sections, opened
Step log and annotations
✖ Commits: 3 of 4 failed), and the status glyphs are coloured.change "fix login redirect" to "fix: login redirect"); the run page shows only that line. The rule's sentence follows on the second line.✖ Commit Check: 6 of 9 checks failed, then where to find the fix.Docs fix
The annotations carry no file, so GitHub shows them on the run page, not on the Files changed tab. The README, the fork-PR warning and
docs/fork-pr-comments.mdsaid otherwise.Notes
ScopeResultgainstext(what the action piped to the CLI) andedits, used to work out which lines a fix removes or adds. Neither is part of theresultoutput.main.pystays at 100%.Summary by CodeRabbit