Expand description
GitHub pull request navigation, independent of any board or account.
A board declares that it responds to OpenPullRequest; requesters declare
that they request it. This request key is a navigation capability, routed
through BoardNavigation and the broker, not a synchronous data request.
The responder validates the URL again in Dashboard::open_link, opens its
normal detail panel and loads missing data with its own current account.
No credential, account choice or board ID crosses the contract.
The same responder also resolves pull request references in text to
short summaries (ResolvePullRequests), with its own current account,
from memory: a reference it has not read yet is
ResolutionState::Pending and it publishes Changed when the read
lands, and whenever the account changes or signs out. Subscribers keep
nothing across a Changed. Summaries are pull request content, so these
types do not implement Debug.
Modules§
- recognition
- Strict, canonical GitHub pull request links. Parsing the original bytes avoids accepting URL-parser rewrites of dot segments, escapes or backslashes.
Structs§
- Changed
- The account changed, it signed out, or pending summaries finished: ask again.
- Check
Counts - How many of the head commit’s checks passed, out of how many, such as
4 of 5.
passedis never more thantotal. - Github
- Open
Pull Request - Navigation responder role for a URL recognised by
recognition::PullRequestLink. Used as aBoardNavigationrouting key; nocontracts::requestor attached synchronous responder is needed.Dashboard::open_linkaccepts or refuses it. - Pull
Request Details - A short pull request summary, held only in memory for this account.
- Resolution
- What the responder knows about one pull request.
- Resolve
Pull Requests - Asks for short summaries of pull requests by canonical
owner/repository#numberkey, read with the responder’s current account.
Enums§
- Check
Status - The combined state of the head commit’s checks.
- Pull
Request Status - Where a pull request stands.
- Resolution
State - Review
Status - The review decision GitHub reports.
Constants§
- MAX_
RESOLVE - At most this many pull requests in one
ResolvePullRequests.