Skip to main content

Module pr

Module pr 

Source
Expand description

Pull requests: naming and selecting them, what jouet pr status reports, what each needs next, landing them, and review threads.

Modules§

land
The GitHub writes behind jouet pr land: updating a branch with its base, merging, and confirming the merge.
next
jouet pr next: the one thing a PR needs next, after Kent C. Dodds’ ship-pr.mjs.
select
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.
status
Fetching the status of many PRs in batched GraphQL queries, and deriving the reasons each one needs attention.
target
Naming a PR: a number, a URL, owner/repo#123 or a branch, and the repository a bare number or branch belongs to.
threads
Review threads: fetching every thread of a PR, selecting the ones a listing asks for, and finding when a commit was pushed.