fix: read live review requests from each forge #249
1 changed files with 3 additions and 3 deletions
|
|
@ -598,9 +598,9 @@ FAKE_REVIEWS='[
|
|||
{"user":{"login":"claude-bot"},"state":"REQUEST_CHANGES","commit_id":"old","submitted_at":"2026-08-22T23:03:39Z"}
|
||||
]'
|
||||
review_requests_stub
|
||||
check "supersedes: a stale approver who was never re-requested is not requested" 0 "" \
|
||||
check "supersedes 'a stale approval still owes a verdict': one never re-requested is not requested" 0 "" \
|
||||
eq "" forge_pr_review_requests 96
|
||||
check "supersedes: a merged PR whose requested_reviewers still lists the whole panel yields nobody" 0 "" \
|
||||
check "supersedes 'the never-cleared forgejo field collapses to who actually owes': a merged PR yields nobody" 0 "" \
|
||||
eq "" forge_pr_review_requests 146
|
||||
|
||||
# crew!97's opening request rows. Deliberately unordered with one duplicate:
|
||||
|
|
@ -629,7 +629,7 @@ check "supersedes: a reviewer re-requested while holding REQUEST_CHANGES is requ
|
|||
FAKE_REVIEWS_N=1
|
||||
FAKE_REVIEWS='[{"user":{"login":"kimi-bot"},"state":"REQUEST_REVIEW","commit_id":"","submitted_at":"2026-08-22T22:51:12Z"}]'
|
||||
review_requests_stub
|
||||
check "supersedes: a login whose only row is REQUEST_REVIEW is requested" 0 "" \
|
||||
check "supersedes 'a Forgejo request row is not an answer and leaves the login outstanding': its login is requested" 0 "" \
|
||||
eq "kimi-bot" forge_pr_review_requests 97
|
||||
|
||||
# GitHub already exposes the exact live set on the PR object. Stub only the
|
||||
|
|
|
|||
Loading…
Reference in a new issue