Skip to main content

Module next

Module next 

Source
Expand description

jouet pr next: the one thing a PR needs next, after Kent C. Dodds’ ship-pr.mjs.

The order is fixed and the first state that applies wins: merged, closed, draft, conflict, mergeability still unknown, behind its base, failing checks, pending checks, changes requested, unresolved threads, open Entire findings, another failing Entire gate, waiting on approval, blocked by another branch protection rule, auto-merge, and finally ready to merge. The states come from what pr status fetched, and its attention codes and messages, so the two commands never disagree.

Structs§

Next
What a PR needs next, why, and the command that does it.

Enums§

Action
The next action, as a fixed code.
Kind
Whose move it is.

Functions§

next
Works through the states in order and returns the first that applies. pr must have been finished by Fetched::finish, which fills in its attention codes.