@backstage/plugin-scaffolder-backend 1.15.0-next.1 → 1.15.0-next.3

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/dist/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-9c1b2955.cjs.js');
5
+ var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-8d851e94.cjs.js');
6
6
  var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
7
7
  require('@backstage/catalog-model');
8
8
  require('@backstage/errors');
@@ -65,6 +65,8 @@ exports.createFetchTemplateAction = ScaffolderEntitiesProcessor.createFetchTempl
65
65
  exports.createFilesystemDeleteAction = ScaffolderEntitiesProcessor.createFilesystemDeleteAction;
66
66
  exports.createFilesystemRenameAction = ScaffolderEntitiesProcessor.createFilesystemRenameAction;
67
67
  exports.createGithubActionsDispatchAction = ScaffolderEntitiesProcessor.createGithubActionsDispatchAction;
68
+ exports.createGithubDeployKeyAction = ScaffolderEntitiesProcessor.createGithubDeployKeyAction;
69
+ exports.createGithubEnvironmentAction = ScaffolderEntitiesProcessor.createGithubEnvironmentAction;
68
70
  exports.createGithubIssuesLabelAction = ScaffolderEntitiesProcessor.createGithubIssuesLabelAction;
69
71
  exports.createGithubRepoCreateAction = ScaffolderEntitiesProcessor.createGithubRepoCreateAction;
70
72
  exports.createGithubRepoPushAction = ScaffolderEntitiesProcessor.createGithubRepoPushAction;
@@ -73,6 +75,7 @@ exports.createPublishAzureAction = ScaffolderEntitiesProcessor.createPublishAzur
73
75
  exports.createPublishBitbucketAction = ScaffolderEntitiesProcessor.createPublishBitbucketAction;
74
76
  exports.createPublishBitbucketCloudAction = ScaffolderEntitiesProcessor.createPublishBitbucketCloudAction;
75
77
  exports.createPublishBitbucketServerAction = ScaffolderEntitiesProcessor.createPublishBitbucketServerAction;
78
+ exports.createPublishBitbucketServerPullRequestAction = ScaffolderEntitiesProcessor.createPublishBitbucketServerPullRequestAction;
76
79
  exports.createPublishGerritAction = ScaffolderEntitiesProcessor.createPublishGerritAction;
77
80
  exports.createPublishGerritReviewAction = ScaffolderEntitiesProcessor.createPublishGerritReviewAction;
78
81
  exports.createPublishGithubAction = ScaffolderEntitiesProcessor.createPublishGithubAction;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {\n ActionContext as ActionContextNode,\n createTemplateAction as createTemplateActionNode,\n TaskSecrets as TaskSecretsNode,\n TemplateAction as TemplateActionNode,\n} from '@backstage/plugin-scaffolder-node';\nimport { JsonObject } from '@backstage/types';\n\n/**\n * @public\n * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead\n */\nexport type ActionContext<TInput extends JsonObject> =\n ActionContextNode<TInput>;\n\n/**\n * @public\n * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const createTemplateAction = createTemplateActionNode;\n\n/**\n * @public\n * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TaskSecrets = TaskSecretsNode;\n\n/**\n * @public\n * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TemplateAction<TInput extends JsonObject> =\n TemplateActionNode<TInput>;\n"],"names":["createTemplateActionNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCO,MAAM,oBAAuB,GAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {\n ActionContext as ActionContextNode,\n createTemplateAction as createTemplateActionNode,\n TaskSecrets as TaskSecretsNode,\n TemplateAction as TemplateActionNode,\n} from '@backstage/plugin-scaffolder-node';\nimport { JsonObject } from '@backstage/types';\n\n/**\n * @public\n * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead\n */\nexport type ActionContext<TInput extends JsonObject> =\n ActionContextNode<TInput>;\n\n/**\n * @public\n * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const createTemplateAction = createTemplateActionNode;\n\n/**\n * @public\n * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TaskSecrets = TaskSecretsNode;\n\n/**\n * @public\n * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TemplateAction<TInput extends JsonObject> =\n TemplateActionNode<TInput>;\n"],"names":["createTemplateActionNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCO,MAAM,oBAAuB,GAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -307,6 +307,22 @@ declare function createPublishBitbucketServerAction(options: {
307
307
  gitAuthorEmail?: string | undefined;
308
308
  }, _backstage_types.JsonObject>;
309
309
 
310
+ /**
311
+ * Creates a BitbucketServer Pull Request action.
312
+ * @public
313
+ */
314
+ declare function createPublishBitbucketServerPullRequestAction(options: {
315
+ integrations: ScmIntegrationRegistry;
316
+ config: Config;
317
+ }): _backstage_plugin_scaffolder_node.TemplateAction<{
318
+ repoUrl: string;
319
+ title: string;
320
+ description?: string | undefined;
321
+ targetBranch?: string | undefined;
322
+ sourceBranch: string;
323
+ token?: string | undefined;
324
+ }, _backstage_types.JsonObject>;
325
+
310
326
  /**
311
327
  * Creates a new action that initializes a git repository of the content in the workspace
312
328
  * and publishes it to a Gerrit instance.
@@ -418,6 +434,9 @@ type OctokitWithPullRequestPluginClient = Octokit & {
418
434
  data: {
419
435
  html_url: string;
420
436
  number: number;
437
+ base: {
438
+ ref: string;
439
+ };
421
440
  };
422
441
  } | null>;
423
442
  };
@@ -458,6 +477,7 @@ interface CreateGithubPullRequestActionOptions {
458
477
  declare const createPublishGithubPullRequestAction: (options: CreateGithubPullRequestActionOptions) => _backstage_plugin_scaffolder_node.TemplateAction<{
459
478
  title: string;
460
479
  branchName: string;
480
+ targetBranchName?: string | undefined;
461
481
  description: string;
462
482
  repoUrl: string;
463
483
  draft?: boolean | undefined;
@@ -503,6 +523,7 @@ declare const createPublishGitlabMergeRequestAction: (options: {
503
523
  title: string;
504
524
  description: string;
505
525
  branchName: string;
526
+ targetBranchName?: string | undefined;
506
527
  sourcePath?: string | undefined;
507
528
  targetPath?: string | undefined;
508
529
  token?: string | undefined;
@@ -666,6 +687,46 @@ declare function createGithubWebhookAction(options: {
666
687
  token?: string | undefined;
667
688
  }, _backstage_types.JsonObject>;
668
689
 
690
+ /**
691
+ * Creates an `github:deployKey:create` Scaffolder action that creates a Deploy Key
692
+ *
693
+ * @public
694
+ */
695
+ declare function createGithubDeployKeyAction(options: {
696
+ integrations: ScmIntegrationRegistry;
697
+ }): _backstage_plugin_scaffolder_node.TemplateAction<{
698
+ repoUrl: string;
699
+ publicKey: string;
700
+ privateKey: string;
701
+ deployKeyName: string;
702
+ privateKeySecretName?: string | undefined;
703
+ token?: string | undefined;
704
+ }, _backstage_types.JsonObject>;
705
+
706
+ /**
707
+ * Creates an `github:environment:create` Scaffolder action that creates a Github Environment.
708
+ *
709
+ * @public
710
+ */
711
+ declare function createGithubEnvironmentAction(options: {
712
+ integrations: ScmIntegrationRegistry;
713
+ }): _backstage_plugin_scaffolder_node.TemplateAction<{
714
+ repoUrl: string;
715
+ name: string;
716
+ deploymentBranchPolicy?: {
717
+ protected_branches: boolean;
718
+ custom_branch_policies: boolean;
719
+ } | undefined;
720
+ customBranchPolicyNames?: string[] | undefined;
721
+ environmentVariables?: {
722
+ [key: string]: string;
723
+ } | undefined;
724
+ secrets?: {
725
+ [key: string]: string;
726
+ } | undefined;
727
+ token?: string | undefined;
728
+ }, _backstage_types.JsonObject>;
729
+
669
730
  /** @public */
670
731
  type RunCommandOptions = {
671
732
  /** command to run */
@@ -1094,4 +1155,4 @@ type TaskSecrets = TaskSecrets$1;
1094
1155
  */
1095
1156
  type TemplateAction<TInput extends JsonObject> = TemplateAction$1<TInput>;
1096
1157
 
1097
- export { ActionContext, ActionPermissionRuleInput, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskStoreShutDownTaskOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, TemplateGlobal, TemplatePermissionRuleInput, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchCatalogEntityAction, createFetchPlainAction, createFetchPlainFileAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishGerritAction, createPublishGerritReviewAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, createWaitAction, executeShellCommand, fetchContents };
1158
+ export { ActionContext, ActionPermissionRuleInput, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskStoreShutDownTaskOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, TemplateGlobal, TemplatePermissionRuleInput, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchCatalogEntityAction, createFetchPlainAction, createFetchPlainFileAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubDeployKeyAction, createGithubEnvironmentAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishBitbucketServerPullRequestAction, createPublishGerritAction, createPublishGerritReviewAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, createWaitAction, executeShellCommand, fetchContents };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
3
  "description": "The Backstage backend plugin that helps you create new things",
4
- "version": "1.15.0-next.1",
4
+ "version": "1.15.0-next.3",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -44,22 +44,22 @@
44
44
  "build:assets": "node scripts/build-nunjucks.js"
45
45
  },
46
46
  "dependencies": {
47
- "@backstage/backend-common": "^0.19.0-next.1",
48
- "@backstage/backend-plugin-api": "^0.5.3-next.1",
49
- "@backstage/backend-tasks": "^0.5.3-next.1",
50
- "@backstage/catalog-client": "^1.4.2-next.1",
51
- "@backstage/catalog-model": "^1.4.0-next.0",
47
+ "@backstage/backend-common": "^0.19.0-next.2",
48
+ "@backstage/backend-plugin-api": "^0.5.3-next.2",
49
+ "@backstage/backend-tasks": "^0.5.3-next.2",
50
+ "@backstage/catalog-client": "^1.4.2-next.2",
51
+ "@backstage/catalog-model": "^1.4.0-next.1",
52
52
  "@backstage/config": "^1.0.7",
53
53
  "@backstage/errors": "^1.2.0-next.0",
54
54
  "@backstage/integration": "^1.5.0-next.0",
55
- "@backstage/plugin-auth-node": "^0.2.15-next.1",
56
- "@backstage/plugin-catalog-backend": "^1.9.2-next.1",
57
- "@backstage/plugin-catalog-common": "^1.0.14-next.0",
58
- "@backstage/plugin-catalog-node": "^1.3.7-next.1",
55
+ "@backstage/plugin-auth-node": "^0.2.15-next.2",
56
+ "@backstage/plugin-catalog-backend": "^1.10.0-next.2",
57
+ "@backstage/plugin-catalog-common": "^1.0.14-next.1",
58
+ "@backstage/plugin-catalog-node": "^1.3.7-next.2",
59
59
  "@backstage/plugin-permission-common": "^0.7.6-next.0",
60
- "@backstage/plugin-permission-node": "^0.7.9-next.1",
61
- "@backstage/plugin-scaffolder-common": "^1.3.1-next.0",
62
- "@backstage/plugin-scaffolder-node": "^0.1.4-next.1",
60
+ "@backstage/plugin-permission-node": "^0.7.9-next.2",
61
+ "@backstage/plugin-scaffolder-common": "^1.3.1-next.1",
62
+ "@backstage/plugin-scaffolder-node": "^0.1.4-next.2",
63
63
  "@backstage/types": "^1.0.2",
64
64
  "@gitbeaker/core": "^35.6.0",
65
65
  "@gitbeaker/node": "^35.1.0",
@@ -98,8 +98,8 @@
98
98
  "zod": "^3.21.4"
99
99
  },
100
100
  "devDependencies": {
101
- "@backstage/backend-test-utils": "^0.1.38-next.1",
102
- "@backstage/cli": "^0.22.8-next.1",
101
+ "@backstage/backend-test-utils": "^0.1.38-next.2",
102
+ "@backstage/cli": "^0.22.8-next.2",
103
103
  "@types/command-exists": "^1.2.0",
104
104
  "@types/fs-extra": "^9.0.1",
105
105
  "@types/git-url-parse": "^9.0.0",