Skip to main content

Module select

Module select 

Source
Expand description

The PRs a command names: arguments, --mine, --search and --repo, turned into lookups and fetched. jouet pr status, jouet pr next and the routines’ github.prs share it, so they always select the same PRs.

Structs§

Git
The checkout in this process’s directory, through git.
Report
The PRs found, in the order they were named, and what was not.
Selection
The PRs a command names.

Constants§

DEFAULT_SETTLE
How long to wait for GitHub to compute an unknown mergeable state when --settle is not given.

Traits§

Checkout
The checkout a bare number or branch, and the current branch’s PR, are read against.

Functions§

fetch
Fetches the PRs the lookups name, waits up to settle for unknown mergeability, and derives their attention codes.
lookups
Turns the arguments and selectors into lookups, in the order given. Arguments that do not parse are usage errors (2); a host jouet does not know, or --search on a forge without GitHub’s search, is refused (4).

Type Aliases§

Refused
Why a selection cannot be fetched: its exit code and message.