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.
- Hosted
User - Who a token belongs to.
- Issue
Create Options - What the New-issue form can offer for a project: issue types (Jira, Azure) and lists (Trello). Empty for GitHub and GitLab.
- Issue
Filter - Issue
Summary - PrFilter
- Pull
Request Summary - Token
Check - The outcome of checking a token against its host.
Enums§
- Checks
State - The rolled-up state of a request’s checks.
- Issue
State - Pull
Request State - State
Filter - Which states a list query asks for.
- Token
Flavor - 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_atbreaks a tie (ISO-8601 strings sort chronologically). - excess_
scopes - The scopes in
grantedthat neitherneedednortolerated(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
scopeis one of the sensitive ones above. - missing_
scopes - The required scopes nothing in
grantedsatisfies.