Skip to main content

Module github

Module github 

Source
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.
CheckCounts
How many of the head commit’s checks passed, out of how many, such as 4 of 5. passed is never more than total.
Github
OpenPullRequest
Navigation responder role for a URL recognised by recognition::PullRequestLink. Used as a BoardNavigation routing key; no contracts::request or attached synchronous responder is needed. Dashboard::open_link accepts or refuses it.
PullRequestDetails
A short pull request summary, held only in memory for this account.
Resolution
What the responder knows about one pull request.
ResolvePullRequests
Asks for short summaries of pull requests by canonical owner/repository#number key, read with the responder’s current account.

Enums§

CheckStatus
The combined state of the head commit’s checks.
PullRequestStatus
Where a pull request stands.
ResolutionState
ReviewStatus
The review decision GitHub reports.

Constants§

MAX_RESOLVE
At most this many pull requests in one ResolvePullRequests.