feat(actionsRegistry): Adding support for examples (#33551)
* feat(backend-plugin-api): add typed examples to actions registry Signed-off-by: benjdlambert <ben@blam.sh> * fix: address review feedback for actions registry examples Signed-off-by: benjdlambert <ben@blam.sh> * fix: remove empty examples from scaffolder action bridge Signed-off-by: benjdlambert <ben@blam.sh> * chore: add changeset for scaffolder-backend Signed-off-by: benjdlambert <ben@blam.sh> * fix: update router test to match removed examples field Signed-off-by: benjdlambert <ben@blam.sh> --------- Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -93,7 +93,6 @@ export class DefaultTemplateActionRegistry implements TemplateActionRegistry {
|
||||
ret.set(action.id, {
|
||||
id: action.id,
|
||||
description: action.description,
|
||||
examples: [],
|
||||
supportsDryRun:
|
||||
action.attributes?.readOnly === true &&
|
||||
action.attributes?.destructive === false,
|
||||
|
||||
@@ -281,7 +281,6 @@ describe('scaffolder router', () => {
|
||||
|
||||
expect(response.body).toContainEqual({
|
||||
description: 'Test',
|
||||
examples: [],
|
||||
id: 'test:my-demo-action',
|
||||
schema: {
|
||||
input: {
|
||||
|
||||
Reference in New Issue
Block a user