gunk-dev/the-valley

pending.txt

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