You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 15bc7dc
Browse filesBrowse the repository at this point in the historyBrowse files
fix(workspace-source): say on a dry run whether the apply would refuse
The CLI guessed from each finding's kind/key whether it belonged to a held change, and E_PLAN_REF_DELETED names the held workflow while the server records it on the delete, so a dry run exited 15 for an apply that refuses. The dry run now carries refuses from the plan's own refusing list; the CLI falls back to the guess, minus that code, for older servers.
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-workflows.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26972,6 +26972,10 @@
26972
26972
},
26973
26973
"description": "Every planned change, no-ops included, in apply order."
26974
26974
},
26975
+
"refuses": {
26976
+
"description": "Set on a dry run: whether the apply would refuse. Errors of a change held back (`held`) refuse nothing else; any other error refuses. Absent on an apply.",
26977
+
"type": "boolean"
26978
+
},
26975
26979
"applied": {
26976
26980
"type": "array",
26977
26981
"items": {
@@ -28266,6 +28270,10 @@
28266
28270
},
28267
28271
"description": "Every planned change, no-ops included, in apply order."
28268
28272
},
28273
+
"refuses": {
28274
+
"description": "Set on a dry run: whether the apply would refuse. Errors of a change held back (`held`) refuse nothing else; any other error refuses. Absent on an apply.",
dryRun: z.boolean().describe('True when nothing was written because `dryRun` was set.'),
303
303
plan: z.array(changeSchema).describe('Every planned change, no-ops included, in apply order.'),
304
+
refuses: z
305
+
.boolean()
306
+
.optional()
307
+
.describe(
308
+
'Set on a dry run: whether the apply would refuse. Errors of a change held back (`held`) refuse nothing else; any other error refuses. Absent on an apply.'
309
+
),
304
310
applied: z.array(changeSchema).describe('The changes written, in order.'),
0 commit comments