A review_only edit should be dropped, not fail the run #1

Open
opened 2026-11-12 18:32:28 -05:00 by jared · 0 comments
Owner

When the drafter changes a file listed in review_only, disallowed() refuses the whole draft: nothing is copied back and the run exits 1, so every valid edit in that run is lost. The monthly prompt can invite this when a review_only document is also in top_level.

Proposed: drop the review_only paths from the copy-back, keep the rest, and report each dropped file in the PR body ("edited a review_only document; edit discarded"). Changes outside docs keep failing the run as now, since those signal a misbehaving drafter rather than a judgment call.

When the drafter changes a file listed in `review_only`, `disallowed()` refuses the whole draft: nothing is copied back and the run exits 1, so every valid edit in that run is lost. The monthly prompt can invite this when a review_only document is also in `top_level`. Proposed: drop the review_only paths from the copy-back, keep the rest, and report each dropped file in the PR body ("edited a review_only document; edit discarded"). Changes outside `docs` keep failing the run as now, since those signal a misbehaving drafter rather than a judgment call.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Civilytics/docs-review#1