Repository navigation
fix(ci): keep the review checkout clean for Pullfrog's checkout_pr - #60
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (1)
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 |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — reviewed the single CI fix keeping the review checkout clean for checkout_pr:
- Prompt file excluded from git —
Write the promptstep appendssubmission-review-prompt.mdto.git/info/excludeso the generated file no longer leaves the tree dirty. - Clean-tree assertion —
test -z "$(git status --porcelain)"fails the step loudly if anything else dirties the checkout, instead of surfacing later as acheckout_prfailure.
muse-spark-1.3-contributor (free via Pullfrog for OSS) | 𝕏
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.

Summary
The
Submission reviewworkflow writes the reviewer's prompt tosubmission-review-prompt.mdin the repository root, leaving an untracked file. Pullfrog'scheckout_prtool refuses to switch branches over a dirty tree, so the agent had to delete the file before it could check out the pull request (it recorded this in its learnings). The prompt file is now added to.git/info/exclude, and the step asserts the tree is clean.Validation
git status --porcelainis empty.actionlintpasses;zizmorreports nothing.checkout_prworks without the workaround.