@backstage/plugin-scaffolder-backend 1.30.0-next.0 → 1.30.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
+ ## 1.30.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 91f3313: Added experimental flag for scaffolder to wait for running tasks to complete on shutdown
8
+
9
+ Enabling the `EXPERIMENTAL_gracefulShutdown` flag in the scaffolder config will make the
10
+ scaffolder block the shutdown process until all running tasks have completed. This is useful
11
+ when there is a need to ensure that all tasks have completed before the scaffolder is shut down.
12
+
13
+ Please note, that the `TaskWorker` `stop` method is now asynchronous and awaited for the
14
+ tasks to complete when the experimental flag is enabled.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @backstage/plugin-scaffolder-backend-module-gitlab@0.8.0-next.2
20
+ - @backstage/backend-plugin-api@1.2.0-next.1
21
+ - @backstage/plugin-auth-node@0.6.0-next.1
22
+ - @backstage/backend-defaults@0.8.0-next.2
23
+ - @backstage/catalog-client@1.9.1
24
+ - @backstage/catalog-model@1.7.3
25
+ - @backstage/config@1.3.2
26
+ - @backstage/errors@1.2.7
27
+ - @backstage/integration@1.16.1
28
+ - @backstage/types@1.2.1
29
+ - @backstage/plugin-bitbucket-cloud-common@0.2.27
30
+ - @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.2.5-next.2
31
+ - @backstage/plugin-catalog-node@1.16.0-next.2
32
+ - @backstage/plugin-events-node@0.4.8-next.1
33
+ - @backstage/plugin-permission-common@0.8.4
34
+ - @backstage/plugin-permission-node@0.8.8-next.1
35
+ - @backstage/plugin-scaffolder-backend-module-azure@0.2.6-next.1
36
+ - @backstage/plugin-scaffolder-backend-module-bitbucket@0.3.7-next.1
37
+ - @backstage/plugin-scaffolder-backend-module-bitbucket-cloud@0.2.6-next.1
38
+ - @backstage/plugin-scaffolder-backend-module-bitbucket-server@0.2.6-next.1
39
+ - @backstage/plugin-scaffolder-backend-module-gerrit@0.2.6-next.1
40
+ - @backstage/plugin-scaffolder-backend-module-gitea@0.2.6-next.1
41
+ - @backstage/plugin-scaffolder-backend-module-github@0.5.6-next.1
42
+ - @backstage/plugin-scaffolder-common@1.5.9
43
+ - @backstage/plugin-scaffolder-node@0.7.0-next.1
44
+
45
+ ## 1.30.0-next.1
46
+
47
+ ### Patch Changes
48
+
49
+ - 37ab712: Fixed an issue where invalid expressions or non-object values in `step.each` caused an error.
50
+ - Updated dependencies
51
+ - @backstage/plugin-scaffolder-backend-module-gitlab@0.8.0-next.1
52
+ - @backstage/plugin-catalog-node@1.16.0-next.1
53
+ - @backstage/backend-defaults@0.8.0-next.1
54
+ - @backstage/backend-plugin-api@1.2.0-next.0
55
+ - @backstage/catalog-client@1.9.1
56
+ - @backstage/catalog-model@1.7.3
57
+ - @backstage/config@1.3.2
58
+ - @backstage/errors@1.2.7
59
+ - @backstage/integration@1.16.1
60
+ - @backstage/types@1.2.1
61
+ - @backstage/plugin-auth-node@0.5.7-next.0
62
+ - @backstage/plugin-bitbucket-cloud-common@0.2.27
63
+ - @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.2.5-next.1
64
+ - @backstage/plugin-events-node@0.4.8-next.0
65
+ - @backstage/plugin-permission-common@0.8.4
66
+ - @backstage/plugin-permission-node@0.8.8-next.0
67
+ - @backstage/plugin-scaffolder-backend-module-azure@0.2.6-next.0
68
+ - @backstage/plugin-scaffolder-backend-module-bitbucket@0.3.7-next.0
69
+ - @backstage/plugin-scaffolder-backend-module-bitbucket-cloud@0.2.6-next.0
70
+ - @backstage/plugin-scaffolder-backend-module-bitbucket-server@0.2.6-next.0
71
+ - @backstage/plugin-scaffolder-backend-module-gerrit@0.2.6-next.0
72
+ - @backstage/plugin-scaffolder-backend-module-gitea@0.2.6-next.0
73
+ - @backstage/plugin-scaffolder-backend-module-github@0.5.6-next.0
74
+ - @backstage/plugin-scaffolder-common@1.5.9
75
+ - @backstage/plugin-scaffolder-node@0.7.0-next.0
76
+
3
77
  ## 1.30.0-next.0
4
78
 
5
79
  ### Minor Changes
package/config.d.ts CHANGED
@@ -41,6 +41,11 @@ export interface Config {
41
41
  */
42
42
  concurrentTasksLimit?: number;
43
43
 
44
+ /**
45
+ * Tries to wait for tasks to finish during SIGTERM before shutting down the TaskWorker.
46
+ */
47
+ EXPERIMENTAL_gracefulShutdown?: boolean;
48
+
44
49
  /**
45
50
  * Sets the tasks recoverability on system start up.
46
51
  *
@@ -35,6 +35,7 @@ require('@backstage/config');
35
35
  require('lodash');
36
36
  require('p-queue');
37
37
  require('./scaffolder/tasks/NunjucksWorkflowRunner.cjs.js');
38
+ require('timers/promises');
38
39
  var router = require('./service/router.cjs.js');
39
40
 
40
41
  const scaffolderPlugin = backendPluginApi.createBackendPlugin({
@@ -1 +1 @@
1
- {"version":3,"file":"ScaffolderPlugin.cjs.js","sources":["../src/ScaffolderPlugin.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n coreServices,\n createBackendPlugin,\n} from '@backstage/backend-plugin-api';\nimport { ScmIntegrations } from '@backstage/integration';\nimport { catalogServiceRef } from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport {\n TaskBroker,\n TemplateAction,\n TemplateFilter,\n TemplateGlobal,\n} from '@backstage/plugin-scaffolder-node';\nimport {\n AutocompleteHandler,\n scaffolderActionsExtensionPoint,\n scaffolderAutocompleteExtensionPoint,\n scaffolderTaskBrokerExtensionPoint,\n scaffolderTemplatingExtensionPoint,\n scaffolderWorkspaceProviderExtensionPoint,\n WorkspaceProvider,\n} from '@backstage/plugin-scaffolder-node/alpha';\nimport {\n createCatalogRegisterAction,\n createCatalogWriteAction,\n createDebugLogAction,\n createFetchCatalogEntityAction,\n createFetchPlainAction,\n createFetchPlainFileAction,\n createFetchTemplateAction,\n createFetchTemplateFileAction,\n createFilesystemDeleteAction,\n createFilesystemReadDirAction,\n createFilesystemRenameAction,\n createWaitAction,\n} from './scaffolder';\nimport { createRouter } from './service/router';\n\n/**\n * Scaffolder plugin\n *\n * @public\n */\nexport const scaffolderPlugin = createBackendPlugin({\n pluginId: 'scaffolder',\n register(env) {\n const addedActions = new Array<TemplateAction<any, any>>();\n env.registerExtensionPoint(scaffolderActionsExtensionPoint, {\n addActions(...newActions: TemplateAction<any>[]) {\n addedActions.push(...newActions);\n },\n });\n\n let taskBroker: TaskBroker | undefined;\n env.registerExtensionPoint(scaffolderTaskBrokerExtensionPoint, {\n setTaskBroker(newTaskBroker) {\n if (taskBroker) {\n throw new Error('Task broker may only be set once');\n }\n taskBroker = newTaskBroker;\n },\n });\n\n const additionalTemplateFilters: Record<string, TemplateFilter> = {};\n const additionalTemplateGlobals: Record<string, TemplateGlobal> = {};\n env.registerExtensionPoint(scaffolderTemplatingExtensionPoint, {\n addTemplateFilters(newFilters) {\n Object.assign(additionalTemplateFilters, newFilters);\n },\n addTemplateGlobals(newGlobals) {\n Object.assign(additionalTemplateGlobals, newGlobals);\n },\n });\n\n const autocompleteHandlers: Record<string, AutocompleteHandler> = {};\n env.registerExtensionPoint(scaffolderAutocompleteExtensionPoint, {\n addAutocompleteProvider(provider) {\n autocompleteHandlers[provider.id] = provider.handler;\n },\n });\n\n const additionalWorkspaceProviders: Record<string, WorkspaceProvider> = {};\n env.registerExtensionPoint(scaffolderWorkspaceProviderExtensionPoint, {\n addProviders(provider) {\n Object.assign(additionalWorkspaceProviders, provider);\n },\n });\n\n env.registerInit({\n deps: {\n logger: coreServices.logger,\n config: coreServices.rootConfig,\n lifecycle: coreServices.rootLifecycle,\n reader: coreServices.urlReader,\n permissions: coreServices.permissions,\n database: coreServices.database,\n auth: coreServices.auth,\n discovery: coreServices.discovery,\n httpRouter: coreServices.httpRouter,\n httpAuth: coreServices.httpAuth,\n auditor: coreServices.auditor,\n catalogClient: catalogServiceRef,\n events: eventsServiceRef,\n },\n async init({\n logger,\n config,\n lifecycle,\n reader,\n database,\n auth,\n discovery,\n httpRouter,\n httpAuth,\n catalogClient,\n permissions,\n events,\n auditor,\n }) {\n const log = loggerToWinstonLogger(logger);\n const integrations = ScmIntegrations.fromConfig(config);\n\n const actions = [\n // actions provided from other modules\n ...addedActions,\n\n // built-in actions for the scaffolder\n createFetchPlainAction({\n reader,\n integrations,\n }),\n createFetchPlainFileAction({\n reader,\n integrations,\n }),\n createFetchTemplateAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createFetchTemplateFileAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createDebugLogAction(),\n createWaitAction(),\n // todo(blam): maybe these should be a -catalog module?\n createCatalogRegisterAction({ catalogClient, integrations, auth }),\n createFetchCatalogEntityAction({ catalogClient, auth }),\n createCatalogWriteAction(),\n createFilesystemDeleteAction(),\n createFilesystemRenameAction(),\n createFilesystemReadDirAction(),\n ];\n\n const actionIds = actions.map(action => action.id).join(', ');\n\n log.info(\n `Starting scaffolder with the following actions enabled ${actionIds}`,\n );\n\n const router = await createRouter({\n logger: log,\n config,\n database,\n catalogClient,\n reader,\n lifecycle,\n actions,\n taskBroker,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n auth,\n httpAuth,\n discovery,\n permissions,\n autocompleteHandlers,\n additionalWorkspaceProviders,\n events,\n auditor,\n });\n httpRouter.use(router);\n },\n });\n },\n});\n"],"names":["createBackendPlugin","scaffolderActionsExtensionPoint","scaffolderTaskBrokerExtensionPoint","scaffolderTemplatingExtensionPoint","scaffolderAutocompleteExtensionPoint","scaffolderWorkspaceProviderExtensionPoint","coreServices","catalogServiceRef","eventsServiceRef","log","loggerToWinstonLogger","ScmIntegrations","createFetchPlainAction","createFetchPlainFileAction","createFetchTemplateAction","createFetchTemplateFileAction","createDebugLogAction","createWaitAction","createCatalogRegisterAction","createFetchCatalogEntityAction","createCatalogWriteAction","createFilesystemDeleteAction","createFilesystemRenameAction","createFilesystemReadDirAction","router","createRouter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DO,MAAM,mBAAmBA,oCAAoB,CAAA;AAAA,EAClD,QAAU,EAAA,YAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAM,MAAA,YAAA,GAAe,IAAI,KAAgC,EAAA;AACzD,IAAA,GAAA,CAAI,uBAAuBC,qCAAiC,EAAA;AAAA,MAC1D,cAAc,UAAmC,EAAA;AAC/C,QAAa,YAAA,CAAA,IAAA,CAAK,GAAG,UAAU,CAAA;AAAA;AACjC,KACD,CAAA;AAED,IAAI,IAAA,UAAA;AACJ,IAAA,GAAA,CAAI,uBAAuBC,wCAAoC,EAAA;AAAA,MAC7D,cAAc,aAAe,EAAA;AAC3B,QAAA,IAAI,UAAY,EAAA;AACd,UAAM,MAAA,IAAI,MAAM,kCAAkC,CAAA;AAAA;AAEpD,QAAa,UAAA,GAAA,aAAA;AAAA;AACf,KACD,CAAA;AAED,IAAA,MAAM,4BAA4D,EAAC;AACnE,IAAA,MAAM,4BAA4D,EAAC;AACnE,IAAA,GAAA,CAAI,uBAAuBC,wCAAoC,EAAA;AAAA,MAC7D,mBAAmB,UAAY,EAAA;AAC7B,QAAO,MAAA,CAAA,MAAA,CAAO,2BAA2B,UAAU,CAAA;AAAA,OACrD;AAAA,MACA,mBAAmB,UAAY,EAAA;AAC7B,QAAO,MAAA,CAAA,MAAA,CAAO,2BAA2B,UAAU,CAAA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AAA;AAAA,UACA,UAAA;AAAA,UACA,yBAAA;AAAA,UACA,yBAAA;AAAA,UACA,IAAA;AAAA,UACA,QAAA;AAAA,UACA,SAAA;AAAA,UACA,WAAA;AAAA,UACA,oBAAA;AAAA,UACA,4BAAA;AAAA,UACA,MAAA;AAAA,UACA;AAAA,SACD,CAAA;AACD,QAAA,UAAA,CAAW,IAAIe,QAAM,CAAA;AAAA;AACvB,KACD,CAAA;AAAA;AAEL,CAAC;;;;"}
1
+ {"version":3,"file":"ScaffolderPlugin.cjs.js","sources":["../src/ScaffolderPlugin.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n coreServices,\n createBackendPlugin,\n} from '@backstage/backend-plugin-api';\nimport { ScmIntegrations } from '@backstage/integration';\nimport { catalogServiceRef } from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport {\n TaskBroker,\n TemplateAction,\n TemplateFilter,\n TemplateGlobal,\n} from '@backstage/plugin-scaffolder-node';\nimport {\n AutocompleteHandler,\n scaffolderActionsExtensionPoint,\n scaffolderAutocompleteExtensionPoint,\n scaffolderTaskBrokerExtensionPoint,\n scaffolderTemplatingExtensionPoint,\n scaffolderWorkspaceProviderExtensionPoint,\n WorkspaceProvider,\n} from '@backstage/plugin-scaffolder-node/alpha';\nimport {\n createCatalogRegisterAction,\n createCatalogWriteAction,\n createDebugLogAction,\n createFetchCatalogEntityAction,\n createFetchPlainAction,\n createFetchPlainFileAction,\n createFetchTemplateAction,\n createFetchTemplateFileAction,\n createFilesystemDeleteAction,\n createFilesystemReadDirAction,\n createFilesystemRenameAction,\n createWaitAction,\n} from './scaffolder';\nimport { createRouter } from './service/router';\n\n/**\n * Scaffolder plugin\n *\n * @public\n */\nexport const scaffolderPlugin = createBackendPlugin({\n pluginId: 'scaffolder',\n register(env) {\n const addedActions = new Array<TemplateAction<any, any>>();\n env.registerExtensionPoint(scaffolderActionsExtensionPoint, {\n addActions(...newActions: TemplateAction<any>[]) {\n addedActions.push(...newActions);\n },\n });\n\n let taskBroker: TaskBroker | undefined;\n env.registerExtensionPoint(scaffolderTaskBrokerExtensionPoint, {\n setTaskBroker(newTaskBroker) {\n if (taskBroker) {\n throw new Error('Task broker may only be set once');\n }\n taskBroker = newTaskBroker;\n },\n });\n\n const additionalTemplateFilters: Record<string, TemplateFilter> = {};\n const additionalTemplateGlobals: Record<string, TemplateGlobal> = {};\n env.registerExtensionPoint(scaffolderTemplatingExtensionPoint, {\n addTemplateFilters(newFilters) {\n Object.assign(additionalTemplateFilters, newFilters);\n },\n addTemplateGlobals(newGlobals) {\n Object.assign(additionalTemplateGlobals, newGlobals);\n },\n });\n\n const autocompleteHandlers: Record<string, AutocompleteHandler> = {};\n env.registerExtensionPoint(scaffolderAutocompleteExtensionPoint, {\n addAutocompleteProvider(provider) {\n autocompleteHandlers[provider.id] = provider.handler;\n },\n });\n\n const additionalWorkspaceProviders: Record<string, WorkspaceProvider> = {};\n env.registerExtensionPoint(scaffolderWorkspaceProviderExtensionPoint, {\n addProviders(provider) {\n Object.assign(additionalWorkspaceProviders, provider);\n },\n });\n\n env.registerInit({\n deps: {\n logger: coreServices.logger,\n config: coreServices.rootConfig,\n lifecycle: coreServices.rootLifecycle,\n reader: coreServices.urlReader,\n permissions: coreServices.permissions,\n database: coreServices.database,\n auth: coreServices.auth,\n discovery: coreServices.discovery,\n httpRouter: coreServices.httpRouter,\n httpAuth: coreServices.httpAuth,\n auditor: coreServices.auditor,\n catalogClient: catalogServiceRef,\n events: eventsServiceRef,\n },\n async init({\n logger,\n config,\n lifecycle,\n reader,\n database,\n auth,\n discovery,\n httpRouter,\n httpAuth,\n catalogClient,\n permissions,\n events,\n auditor,\n }) {\n const log = loggerToWinstonLogger(logger);\n const integrations = ScmIntegrations.fromConfig(config);\n\n const actions = [\n // actions provided from other modules\n ...addedActions,\n\n // built-in actions for the scaffolder\n createFetchPlainAction({\n reader,\n integrations,\n }),\n createFetchPlainFileAction({\n reader,\n integrations,\n }),\n createFetchTemplateAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createFetchTemplateFileAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createDebugLogAction(),\n createWaitAction(),\n // todo(blam): maybe these should be a -catalog module?\n createCatalogRegisterAction({ catalogClient, integrations, auth }),\n createFetchCatalogEntityAction({ catalogClient, auth }),\n createCatalogWriteAction(),\n createFilesystemDeleteAction(),\n createFilesystemRenameAction(),\n createFilesystemReadDirAction(),\n ];\n\n const actionIds = actions.map(action => action.id).join(', ');\n\n log.info(\n `Starting scaffolder with the following actions enabled ${actionIds}`,\n );\n\n const router = await createRouter({\n logger: log,\n config,\n database,\n catalogClient,\n reader,\n lifecycle,\n actions,\n taskBroker,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n auth,\n httpAuth,\n discovery,\n permissions,\n autocompleteHandlers,\n additionalWorkspaceProviders,\n events,\n auditor,\n });\n httpRouter.use(router);\n },\n });\n },\n});\n"],"names":["createBackendPlugin","scaffolderActionsExtensionPoint","scaffolderTaskBrokerExtensionPoint","scaffolderTemplatingExtensionPoint","scaffolderAutocompleteExtensionPoint","scaffolderWorkspaceProviderExtensionPoint","coreServices","catalogServiceRef","eventsServiceRef","log","loggerToWinstonLogger","ScmIntegrations","createFetchPlainAction","createFetchPlainFileAction","createFetchTemplateAction","createFetchTemplateFileAction","createDebugLogAction","createWaitAction","createCatalogRegisterAction","createFetchCatalogEntityAction","createCatalogWriteAction","createFilesystemDeleteAction","createFilesystemRenameAction","createFilesystemReadDirAction","router","createRouter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DO,MAAM,mBAAmBA,oCAAoB,CAAA;AAAA,EAClD,QAAU,EAAA,YAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAM,MAAA,YAAA,GAAe,IAAI,KAAgC,EAAA;AACzD,IAAA,GAAA,CAAI,uBAAuBC,qCAAiC,EAAA;AAAA,MAC1D,cAAc,UAAmC,EAAA;AAC/C,QAAa,YAAA,CAAA,IAAA,CAAK,GAAG,UAAU,CAAA;AAAA;AACjC,KACD,CAAA;AAED,IAAI,IAAA,UAAA;AACJ,IAAA,GAAA,CAAI,uBAAuBC,wCAAoC,EAAA;AAAA,MAC7D,cAAc,aAAe,EAAA;AAC3B,QAAA,IAAI,UAAY,EAAA;AACd,UAAM,MAAA,IAAI,MAAM,kCAAkC,CAAA;AAAA;AAEpD,QAAa,UAAA,GAAA,aAAA;AAAA;AACf,KACD,CAAA;AAED,IAAA,MAAM,4BAA4D,EAAC;AACnE,IAAA,MAAM,4BAA4D,EAAC;AACnE,IAAA,GAAA,CAAI,uBAAuBC,wCAAoC,EAAA;AAAA,MAC7D,mBAAmB,UAAY,EAAA;AAC7B,QAAO,MAAA,CAAA,MAAA,CAAO,2BAA2B,UAAU,CAAA;AAAA,OACrD;AAAA,MACA,mBAAmB,UAAY,EAAA;AAC7B,QAAO,MAAA,CAAA,MAAA,CAAO,2BAA2B,UAAU,CAAA;AAAA;AACrD,KACD,CAAA;AAED,IAAA,MAAM,uBAA4D,EAAC;AACnE,IAAA,GAAA,CAAI,uBAAuBC,0CAAsC,EAAA;AAAA,MAC/D,wBAAwB,QAAU,EAAA;AAChC,QAAqB,oBAAA,CAAA,QAAA,CAAS,EAAE,CAAA,GAAI,QAAS,CAAA,OAAA;AAAA;AAC/C,KACD,CAAA;AAED,IAAA,MAAM,+BAAkE,EAAC;AAC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;AAAA;AAEL,CAAC;;;;"}
package/dist/index.d.ts CHANGED
@@ -10,13 +10,13 @@ import { ScmIntegrations } from '@backstage/integration';
10
10
  import { CatalogApi } from '@backstage/catalog-client';
11
11
  import { Config } from '@backstage/config';
12
12
  import { Duration } from 'luxon';
13
- import * as github from '@backstage/plugin-scaffolder-backend-module-github';
14
- import * as gitlab from '@backstage/plugin-scaffolder-backend-module-gitlab';
15
- import * as azure from '@backstage/plugin-scaffolder-backend-module-azure';
16
- import * as bitbucket from '@backstage/plugin-scaffolder-backend-module-bitbucket';
17
- import * as bitbucketCloud from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';
18
- import * as bitbucketServer from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';
19
- import * as gerrit from '@backstage/plugin-scaffolder-backend-module-gerrit';
13
+ import { createGithubActionsDispatchAction as createGithubActionsDispatchAction$1, createGithubDeployKeyAction as createGithubDeployKeyAction$1, createGithubEnvironmentAction as createGithubEnvironmentAction$1, createGithubIssuesLabelAction as createGithubIssuesLabelAction$1, CreateGithubPullRequestActionOptions as CreateGithubPullRequestActionOptions$1, createGithubRepoCreateAction as createGithubRepoCreateAction$1, createGithubRepoPushAction as createGithubRepoPushAction$1, createGithubWebhookAction as createGithubWebhookAction$1, createPublishGithubAction as createPublishGithubAction$1 } from '@backstage/plugin-scaffolder-backend-module-github';
14
+ import { createPublishGitlabAction as createPublishGitlabAction$1 } from '@backstage/plugin-scaffolder-backend-module-gitlab';
15
+ import { createPublishAzureAction as createPublishAzureAction$1 } from '@backstage/plugin-scaffolder-backend-module-azure';
16
+ import { createPublishBitbucketAction as createPublishBitbucketAction$1 } from '@backstage/plugin-scaffolder-backend-module-bitbucket';
17
+ import { createPublishBitbucketCloudAction as createPublishBitbucketCloudAction$1 } from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';
18
+ import { createPublishBitbucketServerAction as createPublishBitbucketServerAction$1, createPublishBitbucketServerPullRequestAction as createPublishBitbucketServerPullRequestAction$1 } from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';
19
+ import { createPublishGerritAction as createPublishGerritAction$1, createPublishGerritReviewAction as createPublishGerritReviewAction$1 } from '@backstage/plugin-scaffolder-backend-module-gerrit';
20
20
  import { Knex } from 'knex';
21
21
  import * as _backstage_plugin_scaffolder_common from '@backstage/plugin-scaffolder-common';
22
22
  import { TaskSpec, TaskRecovery, TemplateEntityStepV1beta3, TemplateParametersV1beta3 } from '@backstage/plugin-scaffolder-common';
@@ -280,52 +280,52 @@ declare const createFilesystemReadDirAction: () => _backstage_plugin_scaffolder_
280
280
  * @public
281
281
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
282
282
  */
283
- declare const createGithubActionsDispatchAction: typeof github.createGithubActionsDispatchAction;
283
+ declare const createGithubActionsDispatchAction: typeof createGithubActionsDispatchAction$1;
284
284
  /**
285
285
  * @public
286
286
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
287
287
  */
288
- declare const createGithubDeployKeyAction: typeof github.createGithubDeployKeyAction;
288
+ declare const createGithubDeployKeyAction: typeof createGithubDeployKeyAction$1;
289
289
  /**
290
290
  * @public
291
291
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
292
292
  */
293
- declare const createGithubEnvironmentAction: typeof github.createGithubEnvironmentAction;
293
+ declare const createGithubEnvironmentAction: typeof createGithubEnvironmentAction$1;
294
294
  /**
295
295
  * @public
296
296
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
297
297
  */
298
- declare const createGithubIssuesLabelAction: typeof github.createGithubIssuesLabelAction;
298
+ declare const createGithubIssuesLabelAction: typeof createGithubIssuesLabelAction$1;
299
299
  /**
300
300
  * @public
301
301
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
302
302
  */
303
- type CreateGithubPullRequestActionOptions = github.CreateGithubPullRequestActionOptions;
303
+ type CreateGithubPullRequestActionOptions = CreateGithubPullRequestActionOptions$1;
304
304
  /**
305
305
  * @public
306
306
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
307
307
  */
308
- declare const createGithubRepoCreateAction: typeof github.createGithubRepoCreateAction;
308
+ declare const createGithubRepoCreateAction: typeof createGithubRepoCreateAction$1;
309
309
  /**
310
310
  * @public
311
311
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
312
312
  */
313
- declare const createGithubRepoPushAction: typeof github.createGithubRepoPushAction;
313
+ declare const createGithubRepoPushAction: typeof createGithubRepoPushAction$1;
314
314
  /**
315
315
  * @public
316
316
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
317
317
  */
318
- declare const createGithubWebhookAction: typeof github.createGithubWebhookAction;
318
+ declare const createGithubWebhookAction: typeof createGithubWebhookAction$1;
319
319
  /**
320
320
  * @public
321
321
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
322
322
  */
323
- declare const createPublishGithubAction: typeof github.createPublishGithubAction;
323
+ declare const createPublishGithubAction: typeof createPublishGithubAction$1;
324
324
  /**
325
325
  * @public
326
326
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead
327
327
  */
328
- declare const createPublishGithubPullRequestAction: (options: github.CreateGithubPullRequestActionOptions) => _backstage_plugin_scaffolder_node.TemplateAction<{
328
+ declare const createPublishGithubPullRequestAction: (options: CreateGithubPullRequestActionOptions$1) => _backstage_plugin_scaffolder_node.TemplateAction<{
329
329
  title: string;
330
330
  branchName: string;
331
331
  targetBranchName?: string | undefined;
@@ -347,42 +347,42 @@ declare const createPublishGithubPullRequestAction: (options: github.CreateGithu
347
347
  /**
348
348
  * @public @deprecated use "createPublishBitbucketCloudAction" from \@backstage/plugin-scaffolder-backend-module-bitbucket-cloud or "createPublishBitbucketServerAction" from \@backstage/plugin-scaffolder-backend-module-bitbucket-server instead
349
349
  */
350
- declare const createPublishBitbucketAction: typeof bitbucket.createPublishBitbucketAction;
350
+ declare const createPublishBitbucketAction: typeof createPublishBitbucketAction$1;
351
351
  /**
352
352
  * @public
353
353
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-bitbucket-cloud` instead
354
354
  */
355
- declare const createPublishBitbucketCloudAction: typeof bitbucketCloud.createPublishBitbucketCloudAction;
355
+ declare const createPublishBitbucketCloudAction: typeof createPublishBitbucketCloudAction$1;
356
356
  /**
357
357
  * @public
358
358
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-bitbucket-server` instead
359
359
  */
360
- declare const createPublishBitbucketServerAction: typeof bitbucketServer.createPublishBitbucketServerAction;
360
+ declare const createPublishBitbucketServerAction: typeof createPublishBitbucketServerAction$1;
361
361
  /**
362
362
  * @public
363
363
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-bitbucket-server` instead
364
364
  */
365
- declare const createPublishBitbucketServerPullRequestAction: typeof bitbucketServer.createPublishBitbucketServerPullRequestAction;
365
+ declare const createPublishBitbucketServerPullRequestAction: typeof createPublishBitbucketServerPullRequestAction$1;
366
366
  /**
367
367
  * @public
368
368
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-azure` instead
369
369
  */
370
- declare const createPublishAzureAction: typeof azure.createPublishAzureAction;
370
+ declare const createPublishAzureAction: typeof createPublishAzureAction$1;
371
371
  /**
372
372
  * @public
373
373
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gerrit` instead
374
374
  */
375
- declare const createPublishGerritAction: typeof gerrit.createPublishGerritAction;
375
+ declare const createPublishGerritAction: typeof createPublishGerritAction$1;
376
376
  /**
377
377
  * @public
378
378
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gerrit` instead
379
379
  */
380
- declare const createPublishGerritReviewAction: typeof gerrit.createPublishGerritReviewAction;
380
+ declare const createPublishGerritReviewAction: typeof createPublishGerritReviewAction$1;
381
381
  /**
382
382
  * @public
383
383
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gitlab` instead
384
384
  */
385
- declare const createPublishGitlabAction: typeof gitlab.createPublishGitlabAction;
385
+ declare const createPublishGitlabAction: typeof createPublishGitlabAction$1;
386
386
  /**
387
387
  * @public
388
388
  * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gitlab` instead
@@ -403,6 +403,7 @@ declare const createPublishGitlabMergeRequestAction: (options: {
403
403
  removeSourceBranch?: boolean | undefined;
404
404
  assignee?: string | undefined;
405
405
  reviewers?: string[] | undefined;
406
+ assignReviewersFromApprovalRules?: boolean | undefined;
406
407
  }, _backstage_types.JsonObject>;
407
408
 
408
409
  /**
@@ -831,6 +832,7 @@ type CreateWorkerOptions = {
831
832
  concurrentTasksLimit?: number;
832
833
  additionalTemplateGlobals?: Record<string, TemplateGlobal$1>;
833
834
  permissions?: PermissionEvaluator;
835
+ gracefulShutdown?: boolean;
834
836
  };
835
837
  /**
836
838
  * TaskWorker
@@ -847,7 +849,7 @@ declare class TaskWorker {
847
849
  static create(options: CreateWorkerOptions): Promise<TaskWorker>;
848
850
  recoverTasks(): Promise<void>;
849
851
  start(): void;
850
- stop(): void;
852
+ stop(): Promise<void>;
851
853
  protected onReadyToClaimTask(): Promise<void>;
852
854
  runOneTask(task: TaskContext$1): Promise<void>;
853
855
  }
@@ -13,13 +13,13 @@ var templateFile = require('./fetch/templateFile.cjs.js');
13
13
  var _delete = require('./filesystem/delete.cjs.js');
14
14
  var rename = require('./filesystem/rename.cjs.js');
15
15
  var read = require('./filesystem/read.cjs.js');
16
- var github = require('@backstage/plugin-scaffolder-backend-module-github');
17
- var azure = require('@backstage/plugin-scaffolder-backend-module-azure');
18
- var bitbucket = require('@backstage/plugin-scaffolder-backend-module-bitbucket');
19
- var bitbucketCloud = require('@backstage/plugin-scaffolder-backend-module-bitbucket-cloud');
20
- var bitbucketServer = require('@backstage/plugin-scaffolder-backend-module-bitbucket-server');
21
- var gerrit = require('@backstage/plugin-scaffolder-backend-module-gerrit');
22
- var gitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
16
+ var pluginScaffolderBackendModuleGithub = require('@backstage/plugin-scaffolder-backend-module-github');
17
+ var pluginScaffolderBackendModuleAzure = require('@backstage/plugin-scaffolder-backend-module-azure');
18
+ var pluginScaffolderBackendModuleBitbucket = require('@backstage/plugin-scaffolder-backend-module-bitbucket');
19
+ var pluginScaffolderBackendModuleBitbucketCloud = require('@backstage/plugin-scaffolder-backend-module-bitbucket-cloud');
20
+ var pluginScaffolderBackendModuleBitbucketServer = require('@backstage/plugin-scaffolder-backend-module-bitbucket-server');
21
+ var pluginScaffolderBackendModuleGerrit = require('@backstage/plugin-scaffolder-backend-module-gerrit');
22
+ var pluginScaffolderBackendModuleGitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
23
23
  var pluginScaffolderBackendModuleGitea = require('@backstage/plugin-scaffolder-backend-module-gitea');
24
24
 
25
25
  const createBuiltinActions = (options) => {
@@ -54,11 +54,11 @@ const createBuiltinActions = (options) => {
54
54
  additionalTemplateFilters,
55
55
  additionalTemplateGlobals
56
56
  }),
57
- gerrit.createPublishGerritAction({
57
+ pluginScaffolderBackendModuleGerrit.createPublishGerritAction({
58
58
  integrations,
59
59
  config
60
60
  }),
61
- gerrit.createPublishGerritReviewAction({
61
+ pluginScaffolderBackendModuleGerrit.createPublishGerritReviewAction({
62
62
  integrations,
63
63
  config
64
64
  }),
@@ -66,44 +66,44 @@ const createBuiltinActions = (options) => {
66
66
  integrations,
67
67
  config
68
68
  }),
69
- github.createPublishGithubAction({
69
+ pluginScaffolderBackendModuleGithub.createPublishGithubAction({
70
70
  integrations,
71
71
  config,
72
72
  githubCredentialsProvider
73
73
  }),
74
- github.createPublishGithubPullRequestAction({
74
+ pluginScaffolderBackendModuleGithub.createPublishGithubPullRequestAction({
75
75
  integrations,
76
76
  githubCredentialsProvider,
77
77
  config
78
78
  }),
79
- gitlab.createPublishGitlabAction({
79
+ pluginScaffolderBackendModuleGitlab.createPublishGitlabAction({
80
80
  integrations,
81
81
  config
82
82
  }),
83
- gitlab.createPublishGitlabMergeRequestAction({
83
+ pluginScaffolderBackendModuleGitlab.createPublishGitlabMergeRequestAction({
84
84
  integrations
85
85
  }),
86
- gitlab.createGitlabRepoPushAction({
86
+ pluginScaffolderBackendModuleGitlab.createGitlabRepoPushAction({
87
87
  integrations
88
88
  }),
89
- bitbucket.createPublishBitbucketAction({
89
+ pluginScaffolderBackendModuleBitbucket.createPublishBitbucketAction({
90
90
  integrations,
91
91
  config
92
92
  }),
93
- bitbucketCloud.createPublishBitbucketCloudAction({
93
+ pluginScaffolderBackendModuleBitbucketCloud.createPublishBitbucketCloudAction({
94
94
  integrations,
95
95
  config
96
96
  }),
97
- bitbucketCloud.createPublishBitbucketCloudPullRequestAction({ integrations, config }),
98
- bitbucketServer.createPublishBitbucketServerAction({
97
+ pluginScaffolderBackendModuleBitbucketCloud.createPublishBitbucketCloudPullRequestAction({ integrations, config }),
98
+ pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerAction({
99
99
  integrations,
100
100
  config
101
101
  }),
102
- bitbucketServer.createPublishBitbucketServerPullRequestAction({
102
+ pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerPullRequestAction({
103
103
  integrations,
104
104
  config
105
105
  }),
106
- azure.createPublishAzureAction({
106
+ pluginScaffolderBackendModuleAzure.createPublishAzureAction({
107
107
  integrations,
108
108
  config
109
109
  }),
@@ -115,39 +115,39 @@ const createBuiltinActions = (options) => {
115
115
  _delete.createFilesystemDeleteAction(),
116
116
  read.createFilesystemReadDirAction(),
117
117
  rename.createFilesystemRenameAction(),
118
- github.createGithubActionsDispatchAction({
118
+ pluginScaffolderBackendModuleGithub.createGithubActionsDispatchAction({
119
119
  integrations,
120
120
  githubCredentialsProvider
121
121
  }),
122
- github.createGithubWebhookAction({
122
+ pluginScaffolderBackendModuleGithub.createGithubWebhookAction({
123
123
  integrations,
124
124
  githubCredentialsProvider
125
125
  }),
126
- github.createGithubIssuesLabelAction({
126
+ pluginScaffolderBackendModuleGithub.createGithubIssuesLabelAction({
127
127
  integrations,
128
128
  githubCredentialsProvider
129
129
  }),
130
- github.createGithubRepoCreateAction({
130
+ pluginScaffolderBackendModuleGithub.createGithubRepoCreateAction({
131
131
  integrations,
132
132
  githubCredentialsProvider
133
133
  }),
134
- github.createGithubRepoPushAction({
134
+ pluginScaffolderBackendModuleGithub.createGithubRepoPushAction({
135
135
  integrations,
136
136
  config,
137
137
  githubCredentialsProvider
138
138
  }),
139
- github.createGithubEnvironmentAction({
139
+ pluginScaffolderBackendModuleGithub.createGithubEnvironmentAction({
140
140
  integrations,
141
141
  catalogClient
142
142
  }),
143
- github.createGithubDeployKeyAction({
143
+ pluginScaffolderBackendModuleGithub.createGithubDeployKeyAction({
144
144
  integrations
145
145
  }),
146
- github.createGithubAutolinksAction({
146
+ pluginScaffolderBackendModuleGithub.createGithubAutolinksAction({
147
147
  integrations,
148
148
  githubCredentialsProvider
149
149
  }),
150
- bitbucketCloud.createBitbucketPipelinesRunAction({
150
+ pluginScaffolderBackendModuleBitbucketCloud.createBitbucketPipelinesRunAction({
151
151
  integrations
152
152
  })
153
153
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"createBuiltinActions.cjs.js","sources":["../../../../src/scaffolder/actions/builtin/createBuiltinActions.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { CatalogApi } from '@backstage/catalog-client';\nimport { Config } from '@backstage/config';\nimport {\n DefaultGithubCredentialsProvider,\n GithubCredentialsProvider,\n ScmIntegrations,\n} from '@backstage/integration';\nimport {\n TemplateAction,\n TemplateFilter,\n TemplateGlobal,\n} from '@backstage/plugin-scaffolder-node';\nimport {\n createCatalogRegisterAction,\n createCatalogWriteAction,\n createFetchCatalogEntityAction,\n} from './catalog';\n\nimport { createDebugLogAction, createWaitAction } from './debug';\nimport {\n createFetchPlainAction,\n createFetchPlainFileAction,\n createFetchTemplateAction,\n createFetchTemplateFileAction,\n} from './fetch';\nimport {\n createFilesystemDeleteAction,\n createFilesystemReadDirAction,\n createFilesystemRenameAction,\n} from './filesystem';\nimport {\n createGithubActionsDispatchAction,\n createGithubAutolinksAction,\n createGithubDeployKeyAction,\n createGithubEnvironmentAction,\n createGithubIssuesLabelAction,\n createGithubRepoCreateAction,\n createGithubRepoPushAction,\n createGithubWebhookAction,\n createPublishGithubAction,\n createPublishGithubPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-github';\n\nimport { createPublishAzureAction } from '@backstage/plugin-scaffolder-backend-module-azure';\n\nimport { createPublishBitbucketAction } from '@backstage/plugin-scaffolder-backend-module-bitbucket';\n\nimport {\n createPublishBitbucketCloudAction,\n createBitbucketPipelinesRunAction,\n createPublishBitbucketCloudPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';\n\nimport {\n createPublishBitbucketServerAction,\n createPublishBitbucketServerPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';\n\nimport {\n createPublishGerritAction,\n createPublishGerritReviewAction,\n} from '@backstage/plugin-scaffolder-backend-module-gerrit';\n\nimport {\n createPublishGitlabAction,\n createGitlabRepoPushAction,\n createPublishGitlabMergeRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-gitlab';\n\nimport { createPublishGiteaAction } from '@backstage/plugin-scaffolder-backend-module-gitea';\nimport { AuthService, UrlReaderService } from '@backstage/backend-plugin-api';\n\n/**\n * The options passed to {@link createBuiltinActions}\n * @public\n */\nexport interface CreateBuiltInActionsOptions {\n /**\n * The {@link @backstage/backend-plugin-api#UrlReaderService} interface that will be used in the default actions.\n */\n reader: UrlReaderService;\n /**\n * The {@link @backstage/integrations#ScmIntegrations} that will be used in the default actions.\n */\n integrations: ScmIntegrations;\n /**\n * The {@link @backstage/catalog-client#CatalogApi} that will be used in the default actions.\n */\n catalogClient: CatalogApi;\n /**\n * The {@link @backstage/backend-plugin-api#AuthService} that will be used in the default actions.\n */\n auth?: AuthService;\n /**\n * The {@link @backstage/config#Config} that will be used in the default actions.\n */\n config: Config;\n /**\n * Additional custom filters that will be passed to the nunjucks template engine for use in\n * Template Manifests and also template skeleton files when using `fetch:template`.\n */\n additionalTemplateFilters?: Record<string, TemplateFilter>;\n additionalTemplateGlobals?: Record<string, TemplateGlobal>;\n}\n\n/**\n * A function to generate create a list of default actions that the scaffolder provides.\n * Is called internally in the default setup, but can be used when adding your own actions or overriding the default ones\n *\n * TODO(blam): version 2 of the scaffolder shouldn't ship with the additional modules. We should ship the basics, and let people install\n * modules for the providers they want to use.\n * @public\n * @returns A list of actions that can be used in the scaffolder\n *\n */\nexport const createBuiltinActions = (\n options: CreateBuiltInActionsOptions,\n): TemplateAction[] => {\n const {\n reader,\n integrations,\n catalogClient,\n auth,\n config,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n } = options;\n\n const githubCredentialsProvider: GithubCredentialsProvider =\n DefaultGithubCredentialsProvider.fromIntegrations(integrations);\n\n const actions = [\n createFetchPlainAction({\n reader,\n integrations,\n }),\n createFetchPlainFileAction({\n reader,\n integrations,\n }),\n createFetchTemplateAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createFetchTemplateFileAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createPublishGerritAction({\n integrations,\n config,\n }),\n createPublishGerritReviewAction({\n integrations,\n config,\n }),\n createPublishGiteaAction({\n integrations,\n config,\n }),\n createPublishGithubAction({\n integrations,\n config,\n githubCredentialsProvider,\n }),\n createPublishGithubPullRequestAction({\n integrations,\n githubCredentialsProvider,\n config,\n }),\n createPublishGitlabAction({\n integrations,\n config,\n }),\n createPublishGitlabMergeRequestAction({\n integrations,\n }),\n createGitlabRepoPushAction({\n integrations,\n }),\n createPublishBitbucketAction({\n integrations,\n config,\n }),\n createPublishBitbucketCloudAction({\n integrations,\n config,\n }),\n createPublishBitbucketCloudPullRequestAction({ integrations, config }),\n createPublishBitbucketServerAction({\n integrations,\n config,\n }),\n createPublishBitbucketServerPullRequestAction({\n integrations,\n config,\n }),\n createPublishAzureAction({\n integrations,\n config,\n }),\n createDebugLogAction(),\n createWaitAction(),\n createCatalogRegisterAction({ catalogClient, integrations, auth }),\n createFetchCatalogEntityAction({ catalogClient, auth }),\n createCatalogWriteAction(),\n createFilesystemDeleteAction(),\n createFilesystemReadDirAction(),\n createFilesystemRenameAction(),\n createGithubActionsDispatchAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubWebhookAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubIssuesLabelAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubRepoCreateAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubRepoPushAction({\n integrations,\n config,\n githubCredentialsProvider,\n }),\n createGithubEnvironmentAction({\n integrations,\n catalogClient,\n }),\n createGithubDeployKeyAction({\n integrations,\n }),\n createGithubAutolinksAction({\n integrations,\n githubCredentialsProvider,\n }),\n createBitbucketPipelinesRunAction({\n integrations,\n }),\n ];\n\n return actions as TemplateAction[];\n};\n"],"names":["DefaultGithubCredentialsProvider","createFetchPlainAction","createFetchPlainFileAction","createFetchTemplateAction","createFetchTemplateFileAction","createPublishGerritAction","createPublishGerritReviewAction","createPublishGiteaAction","createPublishGithubAction","createPublishGithubPullRequestAction","createPublishGitlabAction","createPublishGitlabMergeRequestAction","createGitlabRepoPushAction","createPublishBitbucketAction","createPublishBitbucketCloudAction","createPublishBitbucketCloudPullRequestAction","createPublishBitbucketServerAction","createPublishBitbucketServerPullRequestAction","createPublishAzureAction","createDebugLogAction","createWaitAction","createCatalogRegisterAction","createFetchCatalogEntityAction","createCatalogWriteAction","createFilesystemDeleteAction","createFilesystemReadDirAction","createFilesystemRenameAction","createGithubActionsDispatchAction","createGithubWebhookAction","createGithubIssuesLabelAction","createGithubRepoCreateAction","createGithubRepoPushAction","createGithubEnvironmentAction","createGithubDeployKeyAction","createGithubAutolinksAction","createBitbucketPipelinesRunAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmIa,MAAA,oBAAA,GAAuB,CAClC,OACqB,KAAA;AACrB,EAAM,MAAA;AAAA,IACJ,MAAA;AAAA,IACA,YAAA;AAAA,IACA,aAAA;AAAA,IACA,IAAA;AAAA,IACA,MAAA;AAAA,IACA,yBAAA;AAAA,IACA;AAAA,GACE,GAAA,OAAA;AAEJ,EAAM,MAAA,yBAAA,GACJA,4CAAiC,CAAA,gBAAA,CAAiB,YAAY,CAAA;AAEhE,EAAA,MAAM,OAAU,GAAA;AAAA,IACdC,4BAAuB,CAAA;AAAA,MACrB,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,oCAA2B,CAAA;AAAA,MACzB,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,kCAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA,MAAA;AAAA,MACA,yBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,0CAA8B,CAAA;AAAA,MAC5B,YAAA;AAAA,MACA,MAAA;AAAA,MACA,yBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,gCAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,sCAAgC,CAAA;AAAA,MAC9B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,2DAAyB,CAAA;AAAA,MACvB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,gCAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,2CAAqC,CAAA;AAAA,MACnC,YAAA;AAAA,MACA,yBAAA;AAAA,MACA;AAAA,KACD,CA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AA;AAAA,MACzB,YAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,oCAA8B,CAAA;AAAA,MAC5B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,kCAA4B,CAAA;AAAA,MAC1B;AAAA,KACD,CAAA;AAAA,IACDC,kCAA4B,CAAA;AAAA,MAC1B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,gDAAkC,CAAA;AAAA,MAChC;AAAA,KACD;AAAA,GACH;AAEA,EAAO,OAAA,OAAA;AACT;;;;"}
1
+ {"version":3,"file":"createBuiltinActions.cjs.js","sources":["../../../../src/scaffolder/actions/builtin/createBuiltinActions.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { CatalogApi } from '@backstage/catalog-client';\nimport { Config } from '@backstage/config';\nimport {\n DefaultGithubCredentialsProvider,\n GithubCredentialsProvider,\n ScmIntegrations,\n} from '@backstage/integration';\nimport {\n TemplateAction,\n TemplateFilter,\n TemplateGlobal,\n} from '@backstage/plugin-scaffolder-node';\nimport {\n createCatalogRegisterAction,\n createCatalogWriteAction,\n createFetchCatalogEntityAction,\n} from './catalog';\n\nimport { createDebugLogAction, createWaitAction } from './debug';\nimport {\n createFetchPlainAction,\n createFetchPlainFileAction,\n createFetchTemplateAction,\n createFetchTemplateFileAction,\n} from './fetch';\nimport {\n createFilesystemDeleteAction,\n createFilesystemReadDirAction,\n createFilesystemRenameAction,\n} from './filesystem';\nimport {\n createGithubActionsDispatchAction,\n createGithubAutolinksAction,\n createGithubDeployKeyAction,\n createGithubEnvironmentAction,\n createGithubIssuesLabelAction,\n createGithubRepoCreateAction,\n createGithubRepoPushAction,\n createGithubWebhookAction,\n createPublishGithubAction,\n createPublishGithubPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-github';\n\nimport { createPublishAzureAction } from '@backstage/plugin-scaffolder-backend-module-azure';\n\nimport { createPublishBitbucketAction } from '@backstage/plugin-scaffolder-backend-module-bitbucket';\n\nimport {\n createPublishBitbucketCloudAction,\n createBitbucketPipelinesRunAction,\n createPublishBitbucketCloudPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';\n\nimport {\n createPublishBitbucketServerAction,\n createPublishBitbucketServerPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';\n\nimport {\n createPublishGerritAction,\n createPublishGerritReviewAction,\n} from '@backstage/plugin-scaffolder-backend-module-gerrit';\n\nimport {\n createPublishGitlabAction,\n createGitlabRepoPushAction,\n createPublishGitlabMergeRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-gitlab';\n\nimport { createPublishGiteaAction } from '@backstage/plugin-scaffolder-backend-module-gitea';\nimport { AuthService, UrlReaderService } from '@backstage/backend-plugin-api';\n\n/**\n * The options passed to {@link createBuiltinActions}\n * @public\n */\nexport interface CreateBuiltInActionsOptions {\n /**\n * The {@link @backstage/backend-plugin-api#UrlReaderService} interface that will be used in the default actions.\n */\n reader: UrlReaderService;\n /**\n * The {@link @backstage/integrations#ScmIntegrations} that will be used in the default actions.\n */\n integrations: ScmIntegrations;\n /**\n * The {@link @backstage/catalog-client#CatalogApi} that will be used in the default actions.\n */\n catalogClient: CatalogApi;\n /**\n * The {@link @backstage/backend-plugin-api#AuthService} that will be used in the default actions.\n */\n auth?: AuthService;\n /**\n * The {@link @backstage/config#Config} that will be used in the default actions.\n */\n config: Config;\n /**\n * Additional custom filters that will be passed to the nunjucks template engine for use in\n * Template Manifests and also template skeleton files when using `fetch:template`.\n */\n additionalTemplateFilters?: Record<string, TemplateFilter>;\n additionalTemplateGlobals?: Record<string, TemplateGlobal>;\n}\n\n/**\n * A function to generate create a list of default actions that the scaffolder provides.\n * Is called internally in the default setup, but can be used when adding your own actions or overriding the default ones\n *\n * TODO(blam): version 2 of the scaffolder shouldn't ship with the additional modules. We should ship the basics, and let people install\n * modules for the providers they want to use.\n * @public\n * @returns A list of actions that can be used in the scaffolder\n *\n */\nexport const createBuiltinActions = (\n options: CreateBuiltInActionsOptions,\n): TemplateAction[] => {\n const {\n reader,\n integrations,\n catalogClient,\n auth,\n config,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n } = options;\n\n const githubCredentialsProvider: GithubCredentialsProvider =\n DefaultGithubCredentialsProvider.fromIntegrations(integrations);\n\n const actions = [\n createFetchPlainAction({\n reader,\n integrations,\n }),\n createFetchPlainFileAction({\n reader,\n integrations,\n }),\n createFetchTemplateAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createFetchTemplateFileAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createPublishGerritAction({\n integrations,\n config,\n }),\n createPublishGerritReviewAction({\n integrations,\n config,\n }),\n createPublishGiteaAction({\n integrations,\n config,\n }),\n createPublishGithubAction({\n integrations,\n config,\n githubCredentialsProvider,\n }),\n createPublishGithubPullRequestAction({\n integrations,\n githubCredentialsProvider,\n config,\n }),\n createPublishGitlabAction({\n integrations,\n config,\n }),\n createPublishGitlabMergeRequestAction({\n integrations,\n }),\n createGitlabRepoPushAction({\n integrations,\n }),\n createPublishBitbucketAction({\n integrations,\n config,\n }),\n createPublishBitbucketCloudAction({\n integrations,\n config,\n }),\n createPublishBitbucketCloudPullRequestAction({ integrations, config }),\n createPublishBitbucketServerAction({\n integrations,\n config,\n }),\n createPublishBitbucketServerPullRequestAction({\n integrations,\n config,\n }),\n createPublishAzureAction({\n integrations,\n config,\n }),\n createDebugLogAction(),\n createWaitAction(),\n createCatalogRegisterAction({ catalogClient, integrations, auth }),\n createFetchCatalogEntityAction({ catalogClient, auth }),\n createCatalogWriteAction(),\n createFilesystemDeleteAction(),\n createFilesystemReadDirAction(),\n createFilesystemRenameAction(),\n createGithubActionsDispatchAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubWebhookAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubIssuesLabelAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubRepoCreateAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubRepoPushAction({\n integrations,\n config,\n githubCredentialsProvider,\n }),\n createGithubEnvironmentAction({\n integrations,\n catalogClient,\n }),\n createGithubDeployKeyAction({\n integrations,\n }),\n createGithubAutolinksAction({\n integrations,\n githubCredentialsProvider,\n }),\n createBitbucketPipelinesRunAction({\n integrations,\n }),\n ];\n\n return actions as TemplateAction[];\n};\n"],"names":["DefaultGithubCredentialsProvider","createFetchPlainAction","createFetchPlainFileAction","createFetchTemplateAction","createFetchTemplateFileAction","createPublishGerritAction","createPublishGerritReviewAction","createPublishGiteaAction","createPublishGithubAction","createPublishGithubPullRequestAction","createPublishGitlabAction","createPublishGitlabMergeRequestAction","createGitlabRepoPushAction","createPublishBitbucketAction","createPublishBitbucketCloudAction","createPublishBitbucketCloudPullRequestAction","createPublishBitbucketServerAction","createPublishBitbucketServerPullRequestAction","createPublishAzureAction","createDebugLogAction","createWaitAction","createCatalogRegisterAction","createFetchCatalogEntityAction","createCatalogWriteAction","createFilesystemDeleteAction","createFilesystemReadDirAction","createFilesystemRenameAction","createGithubActionsDispatchAction","createGithubWebhookAction","createGithubIssuesLabelAction","createGithubRepoCreateAction","createGithubRepoPushAction","createGithubEnvironmentAction","createGithubDeployKeyAction","createGithubAutolinksAction","createBitbucketPipelinesRunAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmIa,MAAA,oBAAA,GAAuB,CAClC,OACqB,KAAA;AACrB,EAAM,MAAA;AAAA,IACJ,MAAA;AAAA,IACA,YA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;AAAA,IACDC,6EAAkC,CAAA;AAAA,MAChC;AAAA,KACD;AAAA,GACH;AAEA,EAAO,OAAA,OAAA;AACT;;;;"}
@@ -1,57 +1,31 @@
1
1
  'use strict';
2
2
 
3
- var github = require('@backstage/plugin-scaffolder-backend-module-github');
4
- var gitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
5
- var azure = require('@backstage/plugin-scaffolder-backend-module-azure');
6
- var bitbucket = require('@backstage/plugin-scaffolder-backend-module-bitbucket');
7
- var bitbucketCloud = require('@backstage/plugin-scaffolder-backend-module-bitbucket-cloud');
8
- var bitbucketServer = require('@backstage/plugin-scaffolder-backend-module-bitbucket-server');
9
- var gerrit = require('@backstage/plugin-scaffolder-backend-module-gerrit');
3
+ var pluginScaffolderBackendModuleGithub = require('@backstage/plugin-scaffolder-backend-module-github');
4
+ var pluginScaffolderBackendModuleGitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
5
+ var pluginScaffolderBackendModuleAzure = require('@backstage/plugin-scaffolder-backend-module-azure');
6
+ var pluginScaffolderBackendModuleBitbucket = require('@backstage/plugin-scaffolder-backend-module-bitbucket');
7
+ var pluginScaffolderBackendModuleBitbucketCloud = require('@backstage/plugin-scaffolder-backend-module-bitbucket-cloud');
8
+ var pluginScaffolderBackendModuleBitbucketServer = require('@backstage/plugin-scaffolder-backend-module-bitbucket-server');
9
+ var pluginScaffolderBackendModuleGerrit = require('@backstage/plugin-scaffolder-backend-module-gerrit');
10
10
 
11
- function _interopNamespaceCompat(e) {
12
- if (e && typeof e === 'object' && 'default' in e) return e;
13
- var n = Object.create(null);
14
- if (e) {
15
- Object.keys(e).forEach(function (k) {
16
- if (k !== 'default') {
17
- var d = Object.getOwnPropertyDescriptor(e, k);
18
- Object.defineProperty(n, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () { return e[k]; }
21
- });
22
- }
23
- });
24
- }
25
- n.default = e;
26
- return Object.freeze(n);
27
- }
28
-
29
- var github__namespace = /*#__PURE__*/_interopNamespaceCompat(github);
30
- var gitlab__namespace = /*#__PURE__*/_interopNamespaceCompat(gitlab);
31
- var azure__namespace = /*#__PURE__*/_interopNamespaceCompat(azure);
32
- var bitbucket__namespace = /*#__PURE__*/_interopNamespaceCompat(bitbucket);
33
- var bitbucketCloud__namespace = /*#__PURE__*/_interopNamespaceCompat(bitbucketCloud);
34
- var bitbucketServer__namespace = /*#__PURE__*/_interopNamespaceCompat(bitbucketServer);
35
- var gerrit__namespace = /*#__PURE__*/_interopNamespaceCompat(gerrit);
36
-
37
- const createGithubActionsDispatchAction = github__namespace.createGithubActionsDispatchAction;
38
- const createGithubDeployKeyAction = github__namespace.createGithubDeployKeyAction;
39
- const createGithubEnvironmentAction = github__namespace.createGithubEnvironmentAction;
40
- const createGithubIssuesLabelAction = github__namespace.createGithubIssuesLabelAction;
41
- const createGithubRepoCreateAction = github__namespace.createGithubRepoCreateAction;
42
- const createGithubRepoPushAction = github__namespace.createGithubRepoPushAction;
43
- const createGithubWebhookAction = github__namespace.createGithubWebhookAction;
44
- const createPublishGithubAction = github__namespace.createPublishGithubAction;
45
- const createPublishGithubPullRequestAction = github__namespace.createPublishGithubPullRequestAction;
46
- const createPublishBitbucketAction = bitbucket__namespace.createPublishBitbucketAction;
47
- const createPublishBitbucketCloudAction = bitbucketCloud__namespace.createPublishBitbucketCloudAction;
48
- const createPublishBitbucketServerAction = bitbucketServer__namespace.createPublishBitbucketServerAction;
49
- const createPublishBitbucketServerPullRequestAction = bitbucketServer__namespace.createPublishBitbucketServerPullRequestAction;
50
- const createPublishAzureAction = azure__namespace.createPublishAzureAction;
51
- const createPublishGerritAction = gerrit__namespace.createPublishGerritAction;
52
- const createPublishGerritReviewAction = gerrit__namespace.createPublishGerritReviewAction;
53
- const createPublishGitlabAction = gitlab__namespace.createPublishGitlabAction;
54
- const createPublishGitlabMergeRequestAction = gitlab__namespace.createPublishGitlabMergeRequestAction;
11
+ const createGithubActionsDispatchAction = pluginScaffolderBackendModuleGithub.createGithubActionsDispatchAction;
12
+ const createGithubDeployKeyAction = pluginScaffolderBackendModuleGithub.createGithubDeployKeyAction;
13
+ const createGithubEnvironmentAction = pluginScaffolderBackendModuleGithub.createGithubEnvironmentAction;
14
+ const createGithubIssuesLabelAction = pluginScaffolderBackendModuleGithub.createGithubIssuesLabelAction;
15
+ const createGithubRepoCreateAction = pluginScaffolderBackendModuleGithub.createGithubRepoCreateAction;
16
+ const createGithubRepoPushAction = pluginScaffolderBackendModuleGithub.createGithubRepoPushAction;
17
+ const createGithubWebhookAction = pluginScaffolderBackendModuleGithub.createGithubWebhookAction;
18
+ const createPublishGithubAction = pluginScaffolderBackendModuleGithub.createPublishGithubAction;
19
+ const createPublishGithubPullRequestAction = pluginScaffolderBackendModuleGithub.createPublishGithubPullRequestAction;
20
+ const createPublishBitbucketAction = pluginScaffolderBackendModuleBitbucket.createPublishBitbucketAction;
21
+ const createPublishBitbucketCloudAction = pluginScaffolderBackendModuleBitbucketCloud.createPublishBitbucketCloudAction;
22
+ const createPublishBitbucketServerAction = pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerAction;
23
+ const createPublishBitbucketServerPullRequestAction = pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerPullRequestAction;
24
+ const createPublishAzureAction = pluginScaffolderBackendModuleAzure.createPublishAzureAction;
25
+ const createPublishGerritAction = pluginScaffolderBackendModuleGerrit.createPublishGerritAction;
26
+ const createPublishGerritReviewAction = pluginScaffolderBackendModuleGerrit.createPublishGerritReviewAction;
27
+ const createPublishGitlabAction = pluginScaffolderBackendModuleGitlab.createPublishGitlabAction;
28
+ const createPublishGitlabMergeRequestAction = pluginScaffolderBackendModuleGitlab.createPublishGitlabMergeRequestAction;
55
29
 
56
30
  exports.createGithubActionsDispatchAction = createGithubActionsDispatchAction;
57
31
  exports.createGithubDeployKeyAction = createGithubDeployKeyAction;