Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/plan-needs-id-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vercel/board': patch
---

`vb tasks create --help` says what a plan task's `needs` takes: a key of the plan, or a task that's there by its ID, as `"812"` or `{"id": "812"}`.
2 changes: 1 addition & 1 deletion packages/board/src/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export const commands: readonly (CliCommand & { readonly group: (typeof groups)[
option('for', 'only this profile of yours claims it', 'profile'),
claimNow,
option('lease', 'with --claim: how long to hold it'),
option('file', 'a plan, from a JSON file (- reads stdin): an array of tasks, each { key?, text, labels?, needs?, for?, noSync?, attachments? }, all made, in as many writes as it takes'),
option('file', 'a plan, from a JSON file (- reads stdin): an array of tasks, each { key?, text, labels?, needs?, for?, noSync?, attachments? }, all made, in as many writes as it takes. needs takes a key of the plan ("fix" or {"key": "fix"}) or a task that\'s there by its ID ("812" or {"id": "812"})'),
option('no-sync'),
option('idempotency-key', 'sending the same one again makes it once'),
],
Expand Down
3 changes: 2 additions & 1 deletion skills/board/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ vercel board tasks complete "<id>" "fixed in a1b2c3, tests pass"
- **Queue a whole plan at once** with `vercel board tasks create work --file
plan.json --idempotency-key "<key>"`. The file is a JSON array of tasks,
each `{ "key", "text", "labels", "needs" }`, and `"needs": [{ "key":
"fix" }]` waits for another task of the plan. A long plan goes in several
"fix" }]` waits for another task of the plan, `"needs": ["812"]` (or
`{ "id": "812" }`) for a task that's already there. A long plan goes in several
writes, each task after the ones it waits for. If it stops midway, run it
again with the same key: it makes only what's missing.
- **Change what a task waits for** with `vercel board tasks needs "<id>"
Expand Down