List branches with head, base, author, ahead and behind, mergeable and checks
Answered at once from stored facts. ahead, behind, base and
mergeable are computed on change, by a queue: when a branch is
pushed, and in a sweep when main moves (the 100 open branches pushed
most recently in the last 7 days). Until a row's facts are for the
current main and head it is stale: true, with mergeable: "pending"
and last_mergeable; a branch.updated event brings the fresh row. A
list computes at most 25 rows itself, those stale for over 30 s (a
branch no sweep reaches). The default branch is not in the list; its
name and head are at the top.
Newest first, as GitHub lists active branches: an open branch by its
last push, a merged one by its merge time; branches with the same time
by name. Pages stay stable when two share a time: next_cursor holds
the last row's time and name.
https://app.gitpando.com/v1/monorepos/{owner}/{monorepo}/repos/{repo}/branches