Skip to content

feat(pr-management): record FIXUP as a code-review session outcome - #2056

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:code-review-fixup-outcome
Nov 10, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:code-review-fixup-outcome

Conversation

@potiuk

@potiuk potiuk commented Nov 10, 2026

Copy link
Copy Markdown
Member

Summary

code-review session record --outcome accepts APPROVE, REQUEST_CHANGES, COMMENT, skipped, slop-comment, slop-close and dry-run. A PR that ends on the FIXUP disposition, where the maintainer pushes a fixup to the branch and then approves (classifications/disposition-fixup.md), has no outcome to record. The command refuses it, and the Step 3 summary under-counts the pass. Two such PRs went unrecorded in a recent review session.

  • session.py: adds FIXUP to OUTCOMES and counts it as a review. The summary line now reads Reviewed: N (APPROVE a, REQUEST_CHANGES r, COMMENT c, FIXUP f).
  • review-flow.md Step 9: says which outcome each posted review maps to, with FIXUP covering fixup-then-approve with or without auto-merge.
  • session-summary.md: notes that a FIXUP counts as a review.
  • The vendored copy under plugins/magpie-security-tools/ is regenerated with check-family-plugins.py --fix.
  • Test: test_session_records_fixup_as_a_review.

uv run --project tools/pr-management pytest: 806 passed. prek is clean on the changed files.

🤖 Generated with Claude Code

`code-review session record --outcome` accepted only the three GitHub
review events plus skip / slop / dry-run outcomes, so a PR that ended on
the FIXUP disposition (maintainer fixup pushed to the branch, then an
APPROVE that explains it) could not be recorded, and the session summary
under-counted the pass.

Add `FIXUP` to the outcomes, count it as a review in the summary line,
and say in review-flow Step 9 and the session-summary doc which
dispositions map to which outcome.

Generated-by: Claude Opus 5
@potiuk
potiuk enabled auto-merge (squash) November 10, 2026 17:30
@potiuk
potiuk merged commit 5a7a7c2 into apache:main Nov 10, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant