feat: changeset

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-01-18 17:16:28 +01:00
parent 115e4a592c
commit e9a5228642
4 changed files with 59 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend-module-rails': patch
---
Make `containerRunner` argument optional
+14
View File
@@ -0,0 +1,14 @@
---
'@backstage/plugin-scaffolder-backend-module-confluence-to-markdown': patch
'@backstage/plugin-scaffolder-backend-module-cookiecutter': patch
'@backstage/plugin-scaffolder-backend-module-bitbucket': patch
'@backstage/plugin-scaffolder-backend-module-gerrit': patch
'@backstage/plugin-scaffolder-backend-module-github': patch
'@backstage/plugin-scaffolder-backend-module-gitlab': patch
'@backstage/plugin-scaffolder-backend-module-sentry': patch
'@backstage/plugin-scaffolder-backend-module-yeoman': patch
'@backstage/plugin-scaffolder-backend-module-azure': patch
'@backstage/plugin-scaffolder-backend-module-rails': patch
---
Exporting a module for the new Backend System on `/alpha`
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': minor
---
The built-in module list has been trimmed down. Provider specific modules should now be installed with `backend.add` to provide additional actions to the scaffolder.
@@ -32,7 +32,18 @@ import {
scaffolderTaskBrokerExtensionPoint,
scaffolderTemplatingExtensionPoint,
} from '@backstage/plugin-scaffolder-node/alpha';
import { createBuiltinActions } from './scaffolder';
import {
createCatalogRegisterAction,
createCatalogWriteAction,
createDebugLogAction,
createFetchCatalogEntityAction,
createFetchPlainAction,
createFetchPlainFileAction,
createFetchTemplateAction,
createFilesystemDeleteAction,
createFilesystemRenameAction,
createWaitAction,
} from './scaffolder';
import { createRouter } from './service/router';
/**
@@ -91,20 +102,39 @@ export const scaffolderPlugin = createBackendPlugin({
permissions,
}) {
const log = loggerToWinstonLogger(logger);
const integrations = ScmIntegrations.fromConfig(config);
const actions = [
// actions provided from other modules
...addedActions,
...createBuiltinActions({
integrations: ScmIntegrations.fromConfig(config),
catalogClient,
// built-in actions for the scaffolder
createFetchPlainAction({
reader,
integrations,
}),
createFetchPlainFileAction({
reader,
integrations,
}),
createFetchTemplateAction({
integrations,
reader,
config,
additionalTemplateFilters,
additionalTemplateGlobals,
}),
createDebugLogAction(),
createWaitAction(),
// todo(blam): maybe these should be a -catalog module?
createCatalogRegisterAction({ catalogClient, integrations }),
createFetchCatalogEntityAction({ catalogClient }),
createCatalogWriteAction(),
createFilesystemDeleteAction(),
createFilesystemRenameAction(),
];
const actionIds = actions.map(action => action.id).join(', ');
log.info(
`Starting scaffolder with the following actions enabled ${actionIds}`,
);