Skip to main content

Module reviews

Module reviews 

Source
Expand description

The Reviews pane’s list (GET /api/v1/reviews, spec SPEC_REVIEWS_PANE_2026_11_15.md): every pull request a Kanban task names, with the review, checks and merge state srv was told of, and what each one waits on.

Phase R1 makes no GitHub call and holds no credential. It joins two things srv already has: the board’s cards (their PR address, repository, branch, holder and merge time) and the recent review, checks and merge events of super::pr_flow. The events name a repository only by its numeric id, so the join is by the card’s holder and the PR number, and a repository id learned from one unambiguous match settles a later clash of two cards that hold PRs with the same number. An event no card claims is a row with no task and no address.

This file is pure: the handler reads the board and the recent events and calls build.

Structs§

CardIn
A card that names a pull request, as build reads it.
ReviewRow
A pull request and where it stands.
ReviewsChecks
The checks of the PR’s newest head srv heard of. A PR whose newest head has no checks event (a push, or a verdict on a commit the checks did not name) has none: checks of an older head are not shown as the current ones.
ReviewsList
The answer of GET /api/v1/reviews.
ReviewsTask
The task a pull request belongs to.
ReviewsVerdict
One reviewer kind’s latest verdict.
WaitsInput
What waits_on reads of one pull request.

Enums§

WaitsOn
Who has to act next.

Functions§

build
The list: a row for each card that names a pull request, and one for each pull request an event named that no card holds, newest change first. cards is whatever the caller may see.
waits_on
Who has to act next on a PR, and why. One table; a change of the review system changes this function only.