@@ -0,0 +1,12 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': minor
|
||||
'@backstage/plugin-scaffolder-node': minor
|
||||
---
|
||||
|
||||
BREAKING ALPHA: The `checkpoint` method now takes an object instead of previous arguments, which allows also for an optional `key` which will be an incrementing counter for each call of the `checkpoint` method per step.
|
||||
|
||||
```ts
|
||||
await ctx.checkpoint({ key: 'repo.create', fn: () => ockokit.repo.create({...})})
|
||||
```
|
||||
|
||||
You can also now return `void` from the checkpoint if the method returns `void` inside the `checkpoint` handler.
|
||||
Reference in New Issue
Block a user