fix(review): approve warning-only auto reviews #55

Closed
opened 2026-05-03 11:18:42 -07:00 by jwilger · 0 comments
Owner

Problem

Branch protection can stay blocked after AR previously requested changes, even when a later review only reports warning-severity findings. Today AR maps warning-only output to a Forgejo COMMENT review, so it does not supersede stale REQUEST_CHANGES reviews or satisfy the required approval gate.

In practice, AR warnings are usually advisory reminders for a human reviewer to check something, not merge blockers. The commit status already treats warning-only reviews as success, but the review event does not.

Desired behavior

  • Error findings continue to post REQUEST_CHANGES.
  • Pre-merge check failures continue to post REQUEST_CHANGES.
  • Warning-only or note-only findings post an APPROVED review while preserving inline comments.
  • Clean zero-finding reviews continue to post APPROVED.

Acceptance criteria

  • A warning-only ReviewOutput maps to ReviewEvent::Approved with inline comments retained.
  • An error finding still maps to ReviewEvent::RequestChanges.
  • Pre-merge failure override still forces RequestChanges.
  • Add/adjust regression tests documenting that advisory warnings do not block merge approval.
## Problem Branch protection can stay blocked after AR previously requested changes, even when a later review only reports warning-severity findings. Today AR maps warning-only output to a Forgejo COMMENT review, so it does not supersede stale REQUEST_CHANGES reviews or satisfy the required approval gate. In practice, AR warnings are usually advisory reminders for a human reviewer to check something, not merge blockers. The commit status already treats warning-only reviews as success, but the review event does not. ## Desired behavior - Error findings continue to post REQUEST_CHANGES. - Pre-merge check failures continue to post REQUEST_CHANGES. - Warning-only or note-only findings post an APPROVED review while preserving inline comments. - Clean zero-finding reviews continue to post APPROVED. ## Acceptance criteria - A warning-only `ReviewOutput` maps to `ReviewEvent::Approved` with inline comments retained. - An error finding still maps to `ReviewEvent::RequestChanges`. - Pre-merge failure override still forces `RequestChanges`. - Add/adjust regression tests documenting that advisory warnings do not block merge approval.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Slipstream/auto_review#55
No description provided.