A pipeline file writes on: [push] (abso.yml, abso.yaml, avcs.json). The word publish is no longer accepted, with no alias. The check messages, "doesn't run on push", abso pipeline check --on push and its --json say push. The stored event kind stays "publish" underneath.
- MCP
- show on this site's /mcp
- CLI
- abso show 101 --json
- JSON
- /christopher/abso-core/versions/101?format=json
Pipeline trigger: on: [push] replaces on: [publish] (abso 427)
of shared·rename··Not checked
Version 100 · Files at version 101
8 files, 43 lines added, 32 removed.
--- a/client/README.md
+++ b/client/README.md
@@ -115,7 +115,7 @@
115115| `abso label <name> [--version n] [--remove]` / `abso labels` | Puts a label on a version of shared (the newest by default) or takes it off, like a git tag; `labels` lists them all. |
116116| `abso follow <label>` / `abso follow --none` | Makes this folder follow a label: every pull takes it to the newest version of shared with that label. `--none` goes back to shared's newest. Saved in `.abso/config.json`. |
117117| `abso check-ignore <path...>` | Whether abso leaves each path out, and which line of which ignore file decided (see "What is left out"). |
118−| `abso pipeline check [file] [--on <event>]` | Reads the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and lists each problem as `<path>: <message>`: a cycle in needs, a job or pipeline that doesn't exist, secrets in a pipeline a draft can start, keys it doesn't know. Exits 1 on problems; otherwise lists each pipeline's jobs in the order they run. With `--on publish|draft|green|land|hand|schedule` (and `--space`, `--pipeline` or `--every`), says which pipelines that event starts, with their jobs in waves that can run side by side, and why the others don't. Reads only the file. The shape is still a draft. |
118+| `abso pipeline check [file] [--on <event>]` | Reads the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and lists each problem as `<path>: <message>`: a cycle in needs, a job or pipeline that doesn't exist, secrets in a pipeline a draft can start, keys it doesn't know. Exits 1 on problems; otherwise lists each pipeline's jobs in the order they run. With `--on push|draft|green|land|hand|schedule` (and `--space`, `--pipeline` or `--every`), says which pipelines that event starts, with their jobs in waves that can run side by side, and why the others don't. Reads only the file. The shape is still a draft. |
119119| `abso issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>]` | The project's issues, most recently updated first. Statuses come from the work: `abso start --issue N` puts an issue In progress, an open ask makes it Blocked (In review for a review), and `push --done` closes it. `--label friction` keeps the issues with every label named: a ready list of work to pick up. `abso issues --labels` lists the labels in use, with how many issues are open under each. |
120120| `abso issue new "<title>" --label <l,l>` / `abso issue <N> --label <l,l> --unlabel <l,l>` | Labels an issue, or changes its labels. A label is 1-40 lower-case letters, digits and `- _ . :` (`friction`, `area:client`); what you type is lower-cased. An edit that only changes labels tells nobody unless `--notify` names people. Tool friction goes in its own issue, labeled `friction`. |
121121| `abso issue draft "<title>"` / `abso issues --drafts` | A draft of an issue: yours alone, with no number and no news. Takes the same fields as `issue new`. `abso issue draft <D> [fields]` changes one, `--open` opens it as an issue (with any fields given over the draft's), `--delete` deletes it. |
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -771,7 +771,7 @@
772772 flags: { on: "string", space: "string", pipeline: "string", every: "string", log: "string" },
774− "abso pipeline check [file] [--on publish|draft|green|land|hand|schedule [--space <name>] [--pipeline <name>] [--every <when>]] | abso pipeline runs [<run>] [--log <pipeline.job>]",
774+ "abso pipeline check [file] [--on push|draft|green|land|hand|schedule [--space <name>] [--pipeline <name>] [--every <when>]] | abso pipeline runs [<run>] [--log <pipeline.job>]",
776776 "Read the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and say what's wrong with it, place by place: a cycle in needs, a job that doesn't exist, secrets a draft could reach, a key it doesn't know. Exits 1 when it has problems. With --on, it says which pipelines that event starts (in shared, or --space), with their jobs in waves that can run side by side, and why each other pipeline doesn't start. It reads only the file. abso pipeline runs asks the server what the project's pipelines did: the runs, newest first; with a run's number, its jobs (state, why, exit, time, an npm or deploy job's phase); with --log <pipeline.job>, that job's output.",
--- a/client/src/pipeline-commands.ts
+++ b/client/src/pipeline-commands.ts
@@ -5,7 +5,7 @@
55
8−import { readPipelineFile } from "../../src/pipeline/pipeline.ts";
@@ -47,7 +47,7 @@
50− : `On ${event.kind}${event.kind === "hand" ? ` of ${event.pipeline}` : ""} in ${event.space}`;
50+ : `On ${triggerWord(event.kind)}${event.kind === "hand" ? ` of ${event.pipeline}` : ""} in ${event.space}`;
@@ -59,11 +59,11 @@
6161 text: `${said}, ${planned.start.length === 0 ? "nothing in" : `${planned.start.length === 1 ? "1 pipeline" : `${planned.start.length} pipelines`} from`} ${name} starts; jobs on one line can run side by side.\n${lines.join("\n")}\n`,
62− json: { file: name, event, ...planned },
66− ` ${p.name}, on ${p.on.map((t) => (typeof t === "string" ? t : `every ${t.every}`)).join(", ")}${p.only ? `, only ${p.only.join(", ")}` : ""}:`,
66+ ` ${p.name}, on ${p.on.map((t) => (typeof t === "string" ? triggerWord(t) : `every ${t.every}`)).join(", ")}${p.only ? `, only ${p.only.join(", ")}` : ""}:`,
6969 ` ${j.name}${p.required.includes(j.name) ? " (required)" : ""}: ${j.uses ? `uses ${j.uses}` : j.run}${j.needs.length ? `, after ${j.needs.join(", ")}` : ""}`,
@@ -71,11 +71,14 @@
7373 text: `${name} is fine: ${pipelines.length === 1 ? "1 pipeline" : `${pipelines.length} pipelines`}, jobs in the order they run.\n${lines.join("\n")}\n`,
74− json: { file: name, pipelines },
76+ pipelines: pipelines.map((p) => ({ ...p, on: p.on.map((t) => (typeof t === "string" ? triggerWord(t) : t)) })),
7780
78−const KINDS = ["publish", "draft", "green", "land", "hand", "schedule"] as const;
7982
@@ -91,7 +94,7 @@
94− return { kind: on as "publish" | "draft" | "green" | "land", space };
9699
--- a/client/test/pipeline-commands.test.ts
+++ b/client/test/pipeline-commands.test.ts
@@ -24,7 +24,7 @@
2424
27− on: [publish, draft]
@@ -37,7 +37,7 @@
40− "abso.yml is fine: 1 pipeline, jobs in the order they run.\n ci, on publish, draft:\n setup: npm ci\n test (required): npm test, after setup\n",
40+ "abso.yml is fine: 1 pipeline, jobs in the order they run.\n ci, on push, draft:\n setup: npm ci\n test (required): npm test, after setup\n",
4343
@@ -78,7 +78,7 @@
81− /^avcs\.json is fine: 1 pipeline.*\n {2}ci, on publish:\n {4}setup \(required\): npm ci\n {4}check \(required\): npm test, after setup\n$/s,
81+ /^avcs\.json is fine: 1 pipeline.*\n {2}ci, on push:\n {4}setup \(required\): npm ci\n {4}check \(required\): npm test, after setup\n$/s,
8484
@@ -116,7 +116,7 @@
119− on: [publish, draft]
@@ -153,7 +153,7 @@
156− /--on is one of publish, draft, green, land, hand, schedule/,
158158 assert.match((await run(dir, "check", "--on", "hand")).stderr, /--on hand takes --pipeline <name>/);
159159 assert.match((await run(dir, "check", "--on", "schedule")).stderr, /--on schedule takes --every/);
--- a/src/pipeline/pipeline.ts
+++ b/src/pipeline/pipeline.ts
@@ -89,7 +89,13 @@
9191
92−const TRIGGERS = ["publish", "draft", "green", "land", "hand"] as const;
92+/** The words a pipeline file writes. The word `push` is the stored event "publish" (a log entry kind that stays). */
94+
95101const JOB_KEYS = ["needs", "run", "uses", "from", "keep", "cache", "secrets", "abso", ...MACHINE_KEYS] as const;
@@ -196,7 +202,7 @@
196202 jobs[name] = { run, ...(last ? { needs: [last] } : {}), ...(name === "build" ? { keep: [`${out}/**`] } : {}) };
199− return { on: ["publish"], jobs, required: Object.keys(jobs) };
201207
@@ -364,7 +370,8 @@
367− if (typeof t === "string" && (TRIGGERS as readonly string[]).includes(t)) out.push(t as Trigger);
368375 else if (isRecord(t) && Object.keys(t).length === 1 && typeof t.every === "string" && t.every.trim())
370377 else say(here, `must be one of ${TRIGGERS.join(", ")}, or { every: "<when>" }, not ${q(t)}`);
--- a/src/pipeline/plan.ts
+++ b/src/pipeline/plan.ts
@@ -4,7 +4,7 @@
66
7−import type { Job, Pipeline, PipelineFile } from "./pipeline.ts";
88
@@ -46,7 +46,8 @@
49− if (!on) return event.kind === "schedule" ? `has no schedule "${event.every}"` : `doesn't run on ${event.kind}`;
50+ return event.kind === "schedule" ? `has no schedule "${event.every}"` : `doesn't run on ${triggerWord(event.kind)}`;
5051 if (p.only && !p.only.includes(space)) return `runs only for ${p.only.join(", ")}, not ${space}`;
--- a/src/pipeline/test/pipeline.test.ts
+++ b/src/pipeline/test/pipeline.test.ts
@@ -11,7 +11,7 @@
1111const DRAFT = `defaults: { image: node, size: standard } # image: a menu or \`dockerfile: path\`
14− on: [publish, draft] # every version of shared, and an agent's draft before it pushes
@@ -54,7 +54,7 @@
5454
57− pipelines: { p: { on: ["publish"], jobs, ...rest } },
5959
@@ -106,7 +106,7 @@
107107
109− ok(readPipelineFile("pipelines:\n p:\n on: publish\n jobs:\n a: { run: x }\n", "abso.yaml"));
111111
@@ -122,7 +122,7 @@
125− readPipelineFile("pipelines:\n p:\n on: publish\n on: draft\n jobs: { a: { run: x } }\n", "abso.yml"),
125+ readPipelineFile("pipelines:\n p:\n on: push\n on: draft\n jobs: { a: { run: x } }\n", "abso.yml"),
@@ -166,7 +166,7 @@
169− on: ["publish"],
@@ -198,7 +198,7 @@
198198
201− const ps = problems(checkPipelines(one({ ship: deploy }, { on: ["publish", "draft"], only: "shared" })));
201+ const ps = problems(checkPipelines(one({ ship: deploy }, { on: ["push", "draft"], only: "shared" })));
@@ -300,7 +300,7 @@
303− pipelines: { p: { on: ["publish"], when: "always", jobs: { a: { run: "x", timeout: 5, worker: "w" } } } },
303+ pipelines: { p: { on: ["push"], when: "always", jobs: { a: { run: "x", timeout: 5, worker: "w" } } } },
@@ -336,7 +336,7 @@
339− p: { on: ["publish", "sometimes", { every: "" }], jobs: { a: { run: "x", size: "huge" } } },
341341 s: { on: "green", only: "shared", jobs: { "x y": { uses: "deploy", worker: "w", secrets: ["token"] } } },
@@ -344,7 +344,7 @@
347− has(ps, "pipelines.p.on[1]", /must be one of publish, draft, green, land, hand/);
@@ -364,7 +364,7 @@
365365
367− it("reads the project's own abso.json as ci: setup, then check, both required, on publish", async () => {
367+ it("reads the project's own abso.json as ci: setup, then check, both required, on push", async () => {