@backstage/plugin-scaffolder-backend 1.2.0-next.1 → 1.3.0-next.1

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.d.ts CHANGED
@@ -125,6 +125,7 @@ interface TaskContext {
125
125
  secrets?: TaskSecrets;
126
126
  createdBy?: string;
127
127
  done: boolean;
128
+ isDryRun?: boolean;
128
129
  emitLog(message: string, logMetadata?: JsonObject): Promise<void>;
129
130
  complete(result: TaskCompletionState, metadata?: JsonObject): Promise<void>;
130
131
  getWorkspaceName(): Promise<string>;
@@ -226,11 +227,17 @@ declare type ActionContext<Input extends JsonObject> = {
226
227
  */
227
228
  createTemporaryDirectory(): Promise<string>;
228
229
  templateInfo?: TemplateInfo;
230
+ /**
231
+ * Whether this action invocation is a dry-run or not.
232
+ * This will only ever be true if the actions as marked as supporting dry-runs.
233
+ */
234
+ isDryRun?: boolean;
229
235
  };
230
236
  /** @public */
231
237
  declare type TemplateAction<Input extends JsonObject> = {
232
238
  id: string;
233
239
  description?: string;
240
+ supportsDryRun?: boolean;
234
241
  schema?: {
235
242
  input?: Schema;
236
243
  output?: Schema;
@@ -447,6 +454,23 @@ declare function createPublishFileAction(): TemplateAction<{
447
454
  path: string;
448
455
  }>;
449
456
 
457
+ /**
458
+ * Creates a new action that initializes a git repository of the content in the workspace
459
+ * and publishes it to a Gerrit instance.
460
+ * @public
461
+ */
462
+ declare function createPublishGerritAction(options: {
463
+ integrations: ScmIntegrationRegistry;
464
+ config: Config;
465
+ }): TemplateAction<{
466
+ repoUrl: string;
467
+ description: string;
468
+ defaultBranch?: string | undefined;
469
+ gitCommitMessage?: string | undefined;
470
+ gitAuthorName?: string | undefined;
471
+ gitAuthorEmail?: string | undefined;
472
+ }>;
473
+
450
474
  /**
451
475
  * Creates a new action that initializes a git repository of the content in the workspace
452
476
  * and publishes it to GitHub.
@@ -462,6 +486,7 @@ declare function createPublishGithubAction(options: {
462
486
  description?: string | undefined;
463
487
  access?: string | undefined;
464
488
  defaultBranch?: string | undefined;
489
+ protectDefaultBranch?: boolean | undefined;
465
490
  deleteBranchOnMerge?: boolean | undefined;
466
491
  gitCommitMessage?: string | undefined;
467
492
  gitAuthorName?: string | undefined;
@@ -800,4 +825,4 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
800
825
  postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
801
826
  }
802
827
 
803
- export { ActionContext, 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, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, executeShellCommand, fetchContents };
828
+ export { ActionContext, 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, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishFileAction, createPublishGerritAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, 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.2.0-next.1",
4
+ "version": "1.3.0-next.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -34,14 +34,14 @@
34
34
  "build:assets": "node scripts/build-nunjucks.js"
35
35
  },
36
36
  "dependencies": {
37
- "@backstage/backend-common": "^0.13.3-next.2",
38
- "@backstage/catalog-client": "^1.0.2-next.0",
39
- "@backstage/catalog-model": "^1.0.2-next.0",
40
- "@backstage/config": "^1.0.1-next.0",
37
+ "@backstage/backend-common": "^0.13.6-next.1",
38
+ "@backstage/catalog-client": "^1.0.3-next.0",
39
+ "@backstage/catalog-model": "^1.0.3-next.0",
40
+ "@backstage/config": "^1.0.1",
41
41
  "@backstage/errors": "^1.0.0",
42
- "@backstage/integration": "^1.2.0-next.1",
43
- "@backstage/plugin-catalog-backend": "^1.1.2-next.2",
44
- "@backstage/plugin-scaffolder-common": "^1.1.0-next.0",
42
+ "@backstage/integration": "^1.2.1-next.1",
43
+ "@backstage/plugin-catalog-backend": "^1.2.0-next.1",
44
+ "@backstage/plugin-scaffolder-common": "^1.1.1-next.0",
45
45
  "@backstage/types": "^1.0.0",
46
46
  "@gitbeaker/core": "^35.6.0",
47
47
  "@gitbeaker/node": "^35.1.0",
@@ -67,15 +67,17 @@
67
67
  "nunjucks": "^3.2.3",
68
68
  "octokit": "^1.7.1",
69
69
  "octokit-plugin-create-pull-request": "^3.10.0",
70
+ "p-limit": "^3.1.0",
70
71
  "uuid": "^8.2.0",
71
72
  "vm2": "^3.9.6",
72
73
  "winston": "^3.2.1",
73
74
  "yaml": "^1.10.0",
74
- "zen-observable": "^0.8.15"
75
+ "zen-observable": "^0.8.15",
76
+ "zod": "^3.11.6"
75
77
  },
76
78
  "devDependencies": {
77
- "@backstage/backend-test-utils": "^0.1.24-next.1",
78
- "@backstage/cli": "^0.17.1-next.2",
79
+ "@backstage/backend-test-utils": "^0.1.25-next.1",
80
+ "@backstage/cli": "^0.17.2-next.1",
79
81
  "@types/command-exists": "^1.2.0",
80
82
  "@types/fs-extra": "^9.0.1",
81
83
  "@types/git-url-parse": "^9.0.0",
@@ -86,7 +88,7 @@
86
88
  "esbuild": "^0.14.1",
87
89
  "jest-when": "^3.1.0",
88
90
  "mock-fs": "^5.1.0",
89
- "msw": "^0.35.0",
91
+ "msw": "^0.42.0",
90
92
  "supertest": "^6.1.3",
91
93
  "yaml": "^1.10.0"
92
94
  },
@@ -97,5 +99,5 @@
97
99
  "assets"
98
100
  ],
99
101
  "configSchema": "config.d.ts",
100
- "gitHead": "cfbf5762d7d91eee18999306b21d63840400ee29"
102
+ "gitHead": "e15c24ddb5d14034629ced8a5a5d8f12b8f1a7dd"
101
103
  }