You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/08/05 08:59:32 UTC
Re: [I] F5a cooldown: extend to pull-request-review threads, not just PR-level comments [magpie]
potiuk commented on issue #78:
URL: https://github.com/apache/magpie/issues/78#issuecomment-5189762592
**Status check against `main` — this is half-implemented, and reads as untouched.**
Of the two surfaces asked for:
| Asked for | Status |
|---|---|
| `pull_request_review_comment` — in-line review comments | **Done.** [`classify-and-act.md:48`](https://github.com/apache/magpie/blob/main/skills/pr-management-triage/classify-and-act.md) now defines F5a over "the **union of** general-issue comments (`comments(last:10)`) and **review-thread comments** (`reviewThreads.nodes.comments`)" |
| `pull_request_review` — top-level review submissions, **including their bodies** | **Not done.** |
The query proves the second: [`fetch-and-batch.md:92`](https://github.com/apache/magpie/blob/main/skills/pr-management-triage/fetch-and-batch.md) selects
```graphql
latestReviews(first: 20) { state author { login } authorAssociation submittedAt }
```
— no `body` field — and `:147` documents it as feeding *stale `CHANGES_REQUESTED` detection and the `has_collaborator_review` flag*, not the F5a cooldown. `submittedAt` is fetched but never enters the cooldown union.
**The failure that still bites.** A maintainer submits a top-level review — *"Please rebase and I'll merge"* — with no inline comments. That creates a `pull_request_review` with a body and **no** `reviewThread`, so F5a sees no recent activity and the PR is classified `ping` / `request-author-confirmation` while the maintainer is mid-conversation. Exactly the false positive this issue was filed about.
Note `latestReviews` returns only the latest review per author, so even adding `body` would not give a full history — the cooldown only needs the most recent, so that is probably fine, but worth knowing.
**Remaining work, narrowed:**
- Add `body` to the `latestReviews` selection.
- Extend the F5a union in `classify-and-act.md` to include top-level review submissions, keyed on `submittedAt`.
- The in-line half needs nothing.
Leaving open with the scope reduced to the above, so the next person neither redoes the finished half nor closes this as done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org