gunk-dev/the-valley

pending.txt

sourceca98fdc29fbfmain's published tip history
5.3 KiB
1usage: valley pending [--all] [--repo <name>] [--checks] [--drafts] [--branches] [--json] [-v] [--known-signers <file>] [--integrator-name <name>]
2
3 pending [--all] [--repo <name>] [--checks] [--drafts] [--branches]
4 [--json] [-v] [--known-signers <file>] [--integrator-name <name>]
5 list what waits on you and what is moving. one line
6 on main's state comes first for each project whose
7 policy declares follow checks: clear, clearing or
8 muddy. needs you holds the ready changes that wait on
9 an approval, one numbered row each in landing order:
10 oldest ready first, as the check worker builds them,
11 then by project and change id. a row gives the
12 handle and active version, its checks as passed out of
13 required (or how many are pending, or ✗ the pending
14 checks whose newest build by the host's check worker
15 failed, and when), and how long it has been ready,
16 with its title under it. a stack of
17 such changes is one row, its top's, saying `stack of
18 N`: approving the top lands every layer. moving holds
19 the ready changes that need no approval now, one line
20 each: ◐ approved, waiting on checks and the
21 integrator; ✗ a check failed, named; ✗ or ◇ a restack
22 holds it. older versions are never listed. a last line
23 counts the drafts and the branches no change is on.
24 lines fit the terminal, or 80 columns off one; titles
25 are cut short with …, names never. names are bold and
26 glyphs coloured on a terminal unless NO_COLOR is set.
27 --all every project the serving host
28 publishes, as one listing: each line
29 names its project, and the rows of
30 every project share one landing order
31 (see valley help changes)
32 --repo NAME that one project
33 --checks add to each row the checks the policy
34 requires of it, by cost, as checks
35 derives them, and its full check state,
36 naming the checks that failed, the
37 pending checks that failed in the
38 worker's build, and what they cost the
39 host's check worker to build, with a
40 see: line that reads the worker's
41 report of a failure. that report is
42 diagnostic: a check's state comes from
43 notes alone. with --drafts, give each
44 draft's block the same lines, its name
45 line saying its checks as a row does.
46 with --json, give each pending change,
47 and with --drafts each draft, its
48 checks object
49 --drafts list the drafts in full, in place of
50 their count
51 --branches list the branches no change is on in
52 full, in place of their count. each
53 draft and branch is a block: its name
54 with its head's age and author, its
55 title, then the commits and the diff
56 it adds to the nearest listed entry
57 its head contains, or to main. a stack
58 is its top, then every entry the top
59 contains, at one indentation; an entry
60 not on the one listed after it says
61 `on <base>`
62 --json print valley-pending/v1: the
63 valley-changes/v1 shape, with the
64 pending changes in changes, each
65 marked approved or not, and the
66 drafts in drafts
67 -v follow each row with its block, its
68 stack drawn in full, with what its
69 head includes, `uncertain` when it may
70 have landed without its evidence
71 stored, and its full check state; and
72 warn on stderr when a plan graph is
73 missing or unreadable
74 --known-signers FILE, --integrator-name NAME
75 what a transfer statement is verified
76 with (see changes below)
77 for each project with a ready change, or a draft
78 --drafts --checks lists, reading the checks reads the
79 policy once and runs attest verify for each note.