Skip to main content

Module model

Module model 

Source
Expand description

Host-agnostic shapes for the account, pull/merge request and issue queries. Normalised here, once, so the TUI/CLI/MCP never see whether a row came from GitHub or GitLab.

Structs§

Choice
One entry of a create-form choice list.
HostedUser
Who a token belongs to.
IssueCreateOptions
What the New-issue form can offer for a project: issue types (Jira, Azure) and lists (Trello). Empty for GitHub and GitLab.
IssueFilter
IssueSummary
PrFilter
PullRequestSummary
TokenCheck
The outcome of checking a token against its host.

Enums§

ChecksState
The rolled-up state of a request’s checks.
IssueState
PullRequestState
StateFilter
Which states a list query asks for.
TokenFlavor
What kind of token a connection uses.

Functions§

best_pull_request
Picks the request that best answers “which PR is this branch’s?”: open, then draft, then merged, then closed; newest updated_at breaks a tie (ISO-8601 strings sort chronologically).
excess_scopes
The scopes in granted that neither needed nor tolerated (optional scopes GitPoulpi can use) names, directly or through an umbrella scope, dangerous ones first. Order inside each group is the host’s.
is_dangerous_scope
Whether scope is one of the sensitive ones above.
missing_scopes
The required scopes nothing in granted satisfies.