Repository navigation
fix(pr-assistant): rejeita auto-fix que esvazia ou apaga arquivos - #297
Merged
Merged
Conversation
zplint#44's review fix replaced src/fix.rs (+15/-155) and the pipeline fix then added response.json; both passed every guard. Reject file deletions and per-file removals of 40+ lines that exceed 4x the additions, both before commit (staged diff) and in pipeline-fix validation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cn6JQLTFzgs91MBvxY786W
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.
Por quê
No zplint#44 o auto-fix da revisão (commit 9290c1a8) trocou
src/fix.rsinteiro (+15/-155) e esvaziou a feature. Depois o pipeline-fix (aec4dde0) adicionouresponse.json. Os dois passaram por todas as guardas existentes (forbidden, generated, churn, literal, secret scan). A correção manual foi o revert 5c4f3e0c.O que muda
fix-deletions.tscomdeletionReason(dir, cached). Ele rejeita:commitAndPush, no diff staged, antes do commit (destructive-fix:);validateChanges, no fluxo do pipeline-fixer.Verificação
bun test: 292 pass, 0 fail. Isso inclui 5 testes novos que reproduzem o caso do zplint (-140/+1 rejeitado), uma correção focada, uma remoção proporcional, um arquivo apagado e o diff staged.bun run typecheck: ok.Generated by Claude Code