Skip to main content

Interface: EditChange

Defined in: packages/core/src/application/use-cases/edit-change.ts:38

Edits the spec scope of an existing change by adding or removing spec paths.

Workspaces are derived from the resulting set of specIds via the computed Change.workspaces getter — they are never managed directly. Any modification to specIds triggers approval invalidation via Change.updateSpecIds.

Methods​

execute()​

execute(input): Promise<EditChangeResult>

Defined in: packages/core/src/application/use-cases/edit-change.ts:68

Executes the use case.

Parameters​

input​

EditChangeInput

Edit parameters

Returns​

Promise<EditChangeResult>

The updated change and whether approvals were invalidated

Throws​

If no change with the given name exists

Throws​

If a spec to remove is not in the change's specIds