Action: post the selection report as a sticky PR comment - #7
Merged
Merged
Conversation
The CLI writes its report to LEANEST_REPORT_FILE as well as the job summary, with a hidden marker at the top. The Action finds the comment carrying that marker and edits it, or posts a new one. On by default, off with `comment: false`. A failed post (missing permission, fork PR) only logs a warning. SKIP rows fold into <details>. When the judge is down, the report opens with a warning that gives the reason and says every test still ran. Closes #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An unknown LEANEST_PROVIDER threw in the constructor, so the CLI crashed before writing any report. It now fails at evaluate() like any other judge error: full suite, yellow warning with the reason. The comment marker now carries the framework and dir, and the Action reads it from the report's first line. A job running the Action for both Playwright and Vitest keeps two comments instead of one overwriting the other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
leanest: 2 of 7 playwright test files selected
5 skipped
|
From a cold review of this PR: - Sharded jobs raced to create the comment on a PR's first push and left duplicates. Only shard 1 (or an unsharded run) posts now. - The lookup matched any comment starting with the marker; it now only matches github-actions[bot]'s, so a quoted marker can't hijack it. - Pipes, newlines and backticks in paths, reasons or judge errors broke the table or the warning block. They're flattened and escaped. - Bodies over GitHub's 65,536-character limit failed to post. They fall back to the summary lines and point to the job summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4.
LEANEST_REPORT_FILEas well as the job summary. SKIP rows fold into<details>.<!-- leanest-report <framework> <dir> -->), or posts a new one. On by default, off withcomment: false. A failed post (missingpull-requests: write, fork PR) only logs a warning.actionjob getspull-requests: write, so this PR should show the comment.🤖 Generated with Claude Code