Skip to content

Keep ReviewHog pending while status says reviewing - #205

Merged
haacked merged 2 commits into
mainfrom
haacked/reviewhog-in-progress-status
Sep 1, 2026
Merged

Keep ReviewHog pending while status says reviewing#205
haacked merged 2 commits into
mainfrom
haacked/reviewhog-in-progress-status

Conversation

@haacked

@haacked haacked commented Sep 1, 2026

Copy link
Copy Markdown
Owner
  • Keep ReviewHog pending when its marked status comment still says is reviewing, even after GitHub updates the comment timestamp.
  • Preserve completion detection for marked reviews and marked status comments that no longer say is reviewing.
  • Document the status check and cover a step 3 of 6 update with a regression test.

Test plan

  • Run all 36 pending-review verdict tests.
  • Run all 23 wrapper tests.
  • Run ShellCheck, Bash syntax checks, jq syntax checks, and git diff --check.

@haacked
haacked requested a lite review from Copilot September 1, 2026 22:49
@haacked
haacked marked this pull request as ready for review September 1, 2026 22:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The logic change is narrowly scoped, covered by a targeted regression test, and doesn’t introduce correctness or safety issues beyond minor documentation nits noted in review comments.

Pull request overview

This PR adjusts the “pending reviews” detection logic for ReviewHog so a status comment remains treated as in-progress when it still contains the "is reviewing" phrase, even if GitHub updates the comment timestamp. It also updates documentation and adds a regression test covering the step-progress status update case.

Changes:

  • Treat ReviewHog status comments as not completing a round when the comment body still contains "is reviewing", even if updated_at advances.
  • Preserve the existing completion signals for marked reviews and for marked status comments that no longer indicate active reviewing.
  • Add a regression test for a “step 3 of 6” status update and document the new status-phrase check.
File summaries
File Description
ai/skills/wait-for-pr-reviews/SKILL.md Updates the security note to reflect that the tooling reads the "is reviewing" status phrase in addition to markers/timestamps.
ai/skills/wait-for-pr-reviews/scripts/tests/test-pending-reviews.sh Adds a regression test ensuring an updated status comment that still says "is reviewing" remains pending; updates header commentary.
ai/skills/wait-for-pr-reviews/scripts/helpers/pending-reviews.jq Implements the new “in progress if body contains is reviewing” check for status-comment completion detection.
ai/skills/wait-for-pr-reviews/scripts/check-pending-reviews.sh Documents the updated completion semantics for ReviewHog status comments in the wrapper’s header comment.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +18 to +22
# edited in place as the round progresses and when it finishes). A marked review
# submitted after the label completes the round. A marked status comment also
# completes the round when updated after the label and its own creation, unless it
# still says "is reviewing". A comment whose updated_at equals its created_at is
# the fresh placeholder, i.e. the round just started.
Comment on lines +4 to +7
# The verdict decides which PR reviewers are still mid-review: the ReviewHog
# label versus requested bot reviewers. Completion is read from machine
# markers and timestamps - a marker in a review/comment body plus an ordering
# against the label event - never from the bot's prose.
# markers and timestamps. An updated status comment remains pending while it
# still says "is reviewing".
@haacked
haacked merged commit 8cb5e43 into main Sep 1, 2026
1 check 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.

2 participants