Repository navigation
fix(action): Do not record incremental baselines for runs that request changes - #565
Merged
Merged
Conversation
…t changes A run with requestChanges and failOn on but failCheck off concludes neutral, so it could become an incremental baseline. On the next push its hunks were skipped, and resolving the blocking comment let Warden dismiss the CHANGES_REQUESTED review without checking the finding again. Skip the baseline when the run requested changes, so the next push gets a full review. The request-changes check is now one helper shared with review dismissal. Co-Authored-By: Jeffrey Hung <[email protected]>
Jeffreyhung
approved these changes
Nov 5, 2026
3 tasks done
This branch was successfully deployed
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.
Follow-up to #561. Fixes the medium
security-reviewfinding that showed up only in the check summary on #561's last run (pr-workflow.ts:2122).The gap. With
requestChangesandfailOnon butfailCheckoff, a run with a blocking finding gets aneutralcheck, so it could still become an incremental baseline. On the next push its hunks were skipped. If someone then resolved the blocking comment, Warden saw no current findings and dismissed the earlierCHANGES_REQUESTEDreview without checking the finding again.The fix. A run that requested changes is never recorded as a baseline, so the next push gets a full review and the finding is checked again before the review can be dismissed. The request-changes check is pulled into one
requestsChanges()helper, which both baseline recording and review dismissal now use, so the two can't drift apart.Tradeoff. PRs with an open blocking finding don't get incremental review until a run comes back clean. That matches how failed checks are already handled.
Incremental review is off unless
warden.tomlturns it on, so nobody running the default config sees any change.Tests. I added a workflow-level regression test,
records no baseline when the run requested changes, and confirmed it fails without the fix. I also added a line to the docs fallback list.via Jeffrey Hung.
--
View Session [Sentry]