@backstage/plugin-scaffolder-backend 1.8.1-next.1 → 1.9.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/CHANGELOG.md +66 -0
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +26 -0
- package/dist/index.beta.d.ts +26 -0
- package/dist/index.cjs.js +50 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/package.json +12 -11
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,7 @@ gitCommitMessage?: string | undefined;
|
|
|
335
335
|
gitAuthorName?: string | undefined;
|
|
336
336
|
gitAuthorEmail?: string | undefined;
|
|
337
337
|
requireCodeOwnerReviews?: boolean | undefined;
|
|
338
|
+
dismissStaleReviews?: boolean | undefined;
|
|
338
339
|
bypassPullRequestAllowances?: {
|
|
339
340
|
users?: string[];
|
|
340
341
|
teams?: string[];
|
|
@@ -508,6 +509,7 @@ teams?: string[];
|
|
|
508
509
|
apps?: string[];
|
|
509
510
|
} | undefined;
|
|
510
511
|
requireCodeOwnerReviews?: boolean | undefined;
|
|
512
|
+
dismissStaleReviews?: boolean | undefined;
|
|
511
513
|
requiredStatusCheckContexts?: string[] | undefined;
|
|
512
514
|
requireBranchesToBeUpToDate?: boolean | undefined;
|
|
513
515
|
repoVisibility?: "internal" | "private" | "public" | undefined;
|
|
@@ -611,6 +613,19 @@ export declare type CreateWorkerOptions = {
|
|
|
611
613
|
workingDirectory: string;
|
|
612
614
|
logger: Logger;
|
|
613
615
|
additionalTemplateFilters?: Record<string, TemplateFilter>;
|
|
616
|
+
/**
|
|
617
|
+
* The number of tasks that can be executed at the same time by the worker
|
|
618
|
+
* @defaultValue 10
|
|
619
|
+
* @example
|
|
620
|
+
* ```
|
|
621
|
+
* {
|
|
622
|
+
* concurrentTasksLimit: 1,
|
|
623
|
+
* // OR
|
|
624
|
+
* concurrentTasksLimit: Infinity
|
|
625
|
+
* }
|
|
626
|
+
* ```
|
|
627
|
+
*/
|
|
628
|
+
concurrentTasksLimit?: number;
|
|
614
629
|
additionalTemplateGlobals?: Record<string, TemplateGlobal>;
|
|
615
630
|
};
|
|
616
631
|
|
|
@@ -732,7 +747,16 @@ export declare interface RouterOptions {
|
|
|
732
747
|
catalogClient: CatalogApi;
|
|
733
748
|
scheduler?: PluginTaskScheduler;
|
|
734
749
|
actions?: TemplateAction<any>[];
|
|
750
|
+
/**
|
|
751
|
+
* @deprecated taskWorkers is deprecated in favor of concurrentTasksLimit option with a single TaskWorker
|
|
752
|
+
* @defaultValue 1
|
|
753
|
+
*/
|
|
735
754
|
taskWorkers?: number;
|
|
755
|
+
/**
|
|
756
|
+
* Sets the number of concurrent tasks that can be run at any given time on the TaskWorker
|
|
757
|
+
* @defaultValue 10
|
|
758
|
+
*/
|
|
759
|
+
concurrentTasksLimit?: number;
|
|
736
760
|
taskBroker?: TaskBroker;
|
|
737
761
|
additionalTemplateFilters?: Record<string, TemplateFilter>;
|
|
738
762
|
additionalTemplateGlobals?: Record<string, TemplateGlobal>;
|
|
@@ -997,8 +1021,10 @@ export declare type TaskStoreShutDownTaskOptions = {
|
|
|
997
1021
|
export declare class TaskWorker {
|
|
998
1022
|
private readonly options;
|
|
999
1023
|
private constructor();
|
|
1024
|
+
private taskQueue;
|
|
1000
1025
|
static create(options: CreateWorkerOptions): Promise<TaskWorker>;
|
|
1001
1026
|
start(): void;
|
|
1027
|
+
protected onReadyToClaimTask(): Promise<void>;
|
|
1002
1028
|
runOneTask(task: TaskContext): Promise<void>;
|
|
1003
1029
|
}
|
|
1004
1030
|
|
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.
|
|
4
|
+
"version": "1.9.0-next.3",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@backstage/backend-common": "^0.17.0-next.
|
|
38
|
-
"@backstage/backend-plugin-api": "^0.
|
|
39
|
-
"@backstage/backend-tasks": "^0.4.0-next.
|
|
37
|
+
"@backstage/backend-common": "^0.17.0-next.3",
|
|
38
|
+
"@backstage/backend-plugin-api": "^0.2.0-next.3",
|
|
39
|
+
"@backstage/backend-tasks": "^0.4.0-next.3",
|
|
40
40
|
"@backstage/catalog-client": "^1.2.0-next.1",
|
|
41
41
|
"@backstage/catalog-model": "^1.1.4-next.1",
|
|
42
42
|
"@backstage/config": "^1.0.5-next.1",
|
|
43
43
|
"@backstage/errors": "^1.1.4-next.1",
|
|
44
44
|
"@backstage/integration": "^1.4.1-next.1",
|
|
45
|
-
"@backstage/plugin-auth-node": "^0.2.8-next.
|
|
46
|
-
"@backstage/plugin-catalog-backend": "^1.6.0-next.
|
|
47
|
-
"@backstage/plugin-catalog-node": "^1.
|
|
45
|
+
"@backstage/plugin-auth-node": "^0.2.8-next.3",
|
|
46
|
+
"@backstage/plugin-catalog-backend": "^1.6.0-next.3",
|
|
47
|
+
"@backstage/plugin-catalog-node": "^1.3.0-next.3",
|
|
48
48
|
"@backstage/plugin-scaffolder-common": "^1.2.3-next.1",
|
|
49
49
|
"@backstage/types": "^1.0.2-next.1",
|
|
50
50
|
"@gitbeaker/core": "^35.6.0",
|
|
@@ -72,17 +72,18 @@
|
|
|
72
72
|
"octokit": "^2.0.0",
|
|
73
73
|
"octokit-plugin-create-pull-request": "^3.10.0",
|
|
74
74
|
"p-limit": "^3.1.0",
|
|
75
|
+
"p-queue": "^6.6.2",
|
|
75
76
|
"prom-client": "^14.0.1",
|
|
76
77
|
"uuid": "^8.2.0",
|
|
77
78
|
"vm2": "^3.9.11",
|
|
78
79
|
"winston": "^3.2.1",
|
|
79
80
|
"yaml": "^2.0.0",
|
|
80
81
|
"zen-observable": "^0.10.0",
|
|
81
|
-
"zod": "
|
|
82
|
+
"zod": "~3.18.0"
|
|
82
83
|
},
|
|
83
84
|
"devDependencies": {
|
|
84
|
-
"@backstage/backend-test-utils": "^0.1.31-next.
|
|
85
|
-
"@backstage/cli": "^0.
|
|
85
|
+
"@backstage/backend-test-utils": "^0.1.31-next.4",
|
|
86
|
+
"@backstage/cli": "^0.22.0-next.4",
|
|
86
87
|
"@types/command-exists": "^1.2.0",
|
|
87
88
|
"@types/fs-extra": "^9.0.1",
|
|
88
89
|
"@types/git-url-parse": "^9.0.0",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"@types/nunjucks": "^3.1.4",
|
|
91
92
|
"@types/supertest": "^2.0.8",
|
|
92
93
|
"@types/zen-observable": "^0.8.0",
|
|
93
|
-
"esbuild": "^0.
|
|
94
|
+
"esbuild": "^0.16.0",
|
|
94
95
|
"jest-when": "^3.1.0",
|
|
95
96
|
"mock-fs": "^5.1.0",
|
|
96
97
|
"msw": "^0.49.0",
|