fix: stalled PR 作者已交棒審核改判 reviewer-idle(agents #51)

considerPull 的 author-idle 分支缺少 #47 的交棒檢查,且既有
IsDeliveryReport 訊號為 issue 交付報告設計,PR 端「已就緒,可審閱+
@審核者」形態無對應訊號——fox#60 作者留言交棒後仍被誤判 author-idle。

新增 IsReviewHandoff(@目前審核者帳號 ∧ 就緒語,mention 邊界感知
避免 @chenyunda218 誤命中 chenyunda),considerPull 在判 author-idle
前檢查,命中改判 reviewer-idle,讓既有 48 小時改派規則自然適用。
gitea.py 側 _consider pull 分支以 _is_review_handoff 同步(另 PR)。
This commit is contained in:
2026-09-16 13:17:55 +08:00
parent a9abf96a42
commit 4a5d02fd70
5 changed files with 130 additions and 4 deletions
+6
View File
@@ -242,6 +242,12 @@ PR 改帶 `author` 與 `reviewers` 欄位。`reason` 取值:
改判 `waiting-outside`——已交付待發起人確認不是 assignee 停滯。認領/進度/預告式
留言(無交棒對象)維持 `assignee-idle`,不製造「認領後棄置永不被催」的新死角。
`author-idle` 判定前會先檢查 PR 作者的最後一則留言是否為**審核交棒**(agents #51):
@目前審核者帳號 ∧ 就緒語(已就緒/可審閱/請審閱)同時命中 → 改判 `reviewer-idle`
——作者已表明就緒並點名審核者,球在審核者,讓既有 reviewer 催促與 48 小時改派規則
自然適用。@的帳號必須在目前審核者清單且為完整匹配(@chenyunda218 不算提及
chenyunda);僅就緒語而無點名對象(進度回報、預告式)維持 `author-idle`。
### `teai milestones` — 跨倉庫里程碑總覽
```sh