From e156990a7013ed3df37d1fbb8528a442cdaf2d62 Mon Sep 17 00:00:00 2001 From: Mike Lewis Date: Mon, 12 Jul 2021 12:30:37 +0100 Subject: [PATCH] docs(scaffolder): update custom actions docs with new options for createRouter Signed-off-by: Mike Lewis --- .../software-templates/writing-custom-actions.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/features/software-templates/writing-custom-actions.md b/docs/features/software-templates/writing-custom-actions.md index 90dd603c8f..53a90e2954 100644 --- a/docs/features/software-templates/writing-custom-actions.md +++ b/docs/features/software-templates/writing-custom-actions.md @@ -101,9 +101,7 @@ should have something similar to the below in ```ts return await createRouter({ - preparers, - templaters, - publishers, + containerRunner, logger, config, database, @@ -118,9 +116,7 @@ will set the available actions that the scaffolder has access to. ```ts const actions = [createNewFileAction()]; return await createRouter({ - preparers, - templaters, - publishers, + containerRunner, logger, config, database, @@ -137,18 +133,17 @@ want to have those as well as your new one, you'll need to do the following: import { createBuiltinActions } from '@backstage/plugin-scaffolder-backend'; const builtInActions = createBuiltinActions({ + containerRunner, integrations, + config, catalogClient, - templaters, reader, }); const actions = [...builtInActions, createNewFileAction()]; return await createRouter({ - preparers, - templaters, - publishers, + containerRunner, logger, config, database,