@backstage/plugin-scaffolder-backend 1.3.0-next.0 → 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/CHANGELOG.md +17 -0
- package/dist/index.cjs.js +305 -67
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +14 -12
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;
|
|
@@ -479,6 +486,7 @@ declare function createPublishGithubAction(options: {
|
|
|
479
486
|
description?: string | undefined;
|
|
480
487
|
access?: string | undefined;
|
|
481
488
|
defaultBranch?: string | undefined;
|
|
489
|
+
protectDefaultBranch?: boolean | undefined;
|
|
482
490
|
deleteBranchOnMerge?: boolean | undefined;
|
|
483
491
|
gitCommitMessage?: string | undefined;
|
|
484
492
|
gitAuthorName?: string | undefined;
|
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.3.0-next.
|
|
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.6-next.
|
|
38
|
-
"@backstage/catalog-client": "^1.0.
|
|
39
|
-
"@backstage/catalog-model": "^1.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
40
|
"@backstage/config": "^1.0.1",
|
|
41
41
|
"@backstage/errors": "^1.0.0",
|
|
42
|
-
"@backstage/integration": "^1.2.1-next.
|
|
43
|
-
"@backstage/plugin-catalog-backend": "^1.2.0-next.
|
|
44
|
-
"@backstage/plugin-scaffolder-common": "^1.1.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.25-next.
|
|
78
|
-
"@backstage/cli": "^0.17.2-next.
|
|
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.
|
|
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": "
|
|
102
|
+
"gitHead": "e15c24ddb5d14034629ced8a5a5d8f12b8f1a7dd"
|
|
101
103
|
}
|