@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor 2.15.0 → 2.16.0
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 +10 -0
- package/README.md +2 -0
- package/config.schema.json +67 -0
- package/package.json +12 -10
- package/config.d.ts +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor
|
|
2
2
|
|
|
3
|
+
## 2.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1534c83: Backstage version bump to v1.53.0
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 01d115d: Add module wiring and utility unit tests, a local dev harness, and contributor documentation so Backstage dependency bumps are caught by scoped automated tests. Also document the pullRequests.templateUpdate config option in the config schema.
|
|
12
|
+
|
|
3
13
|
## 2.15.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This is an extension module to the catalog-backend plugin, providing an additional catalog entity processor that adds a new relation that depends on the `spec.scaffoldedFrom` field to link scaffolder templates and the catalog entities they generated. Additionally, it includes a notification feature that automatically alerts entity owners when their scaffolder templates are updated.
|
|
4
4
|
|
|
5
|
+
**Contributors:** see [CONTRIBUTING.md](./CONTRIBUTING.md) for development harnesses, tests, and bump-review guidance.
|
|
6
|
+
|
|
5
7
|
## Getting Started
|
|
6
8
|
|
|
7
9
|
1. Install the scaffolder relation catalog processor module using the following command:
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"scaffolder": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"notifications": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"templateUpdate": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"enabled": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Whether to enable template update notifications",
|
|
17
|
+
"default": false,
|
|
18
|
+
"visibility": "frontend"
|
|
19
|
+
},
|
|
20
|
+
"message": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"title": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The notification title. Supports $ENTITY_DISPLAY_NAME template variable.",
|
|
26
|
+
"default": "$ENTITY_DISPLAY_NAME is out of sync with template",
|
|
27
|
+
"visibility": "frontend"
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "The notification description. Supports $ENTITY_DISPLAY_NAME template variable.",
|
|
32
|
+
"default": "The template used to create $ENTITY_DISPLAY_NAME has been updated to a new version. Review and update your entity to stay in sync with the template.",
|
|
33
|
+
"visibility": "frontend"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"description": "Custom message configuration for notifications",
|
|
37
|
+
"visibility": "frontend"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"description": "Configuration for template update notifications",
|
|
41
|
+
"visibility": "frontend"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"description": "Configuration for notifications",
|
|
45
|
+
"visibility": "frontend"
|
|
46
|
+
},
|
|
47
|
+
"pullRequests": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"templateUpdate": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"enabled": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Whether to enable automatic template update pull requests",
|
|
56
|
+
"default": false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"description": "Configuration for template update pull requests"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"description": "Configuration for pull requests"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor",
|
|
3
3
|
"description": "The scaffolder-relation-processor backend module for the catalog plugin.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.16.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -48,28 +48,30 @@
|
|
|
48
48
|
"tsc": "tsc"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@backstage/backend-plugin-api": "^1.9.
|
|
52
|
-
"@backstage/catalog-client": "^1.16.
|
|
51
|
+
"@backstage/backend-plugin-api": "^1.9.3",
|
|
52
|
+
"@backstage/catalog-client": "^1.16.1",
|
|
53
53
|
"@backstage/catalog-model": "^1.9.0",
|
|
54
54
|
"@backstage/integration": "^2.0.3",
|
|
55
|
-
"@backstage/plugin-catalog-node": "^2.2.
|
|
56
|
-
"@backstage/plugin-events-node": "^0.4.
|
|
55
|
+
"@backstage/plugin-catalog-node": "^2.2.3",
|
|
56
|
+
"@backstage/plugin-events-node": "^0.4.24",
|
|
57
57
|
"@backstage/plugin-notifications-common": "^0.2.3",
|
|
58
|
-
"@backstage/plugin-notifications-node": "^0.2.
|
|
58
|
+
"@backstage/plugin-notifications-node": "^0.2.28",
|
|
59
59
|
"@gitbeaker/rest": "^43.0.0",
|
|
60
60
|
"@octokit/core": "^6.0.0",
|
|
61
61
|
"git-url-parse": "^16.1.0",
|
|
62
62
|
"octokit-plugin-create-pull-request": "^6.0.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@backstage/backend-
|
|
66
|
-
"@backstage/
|
|
65
|
+
"@backstage/backend-defaults": "^0.17.5",
|
|
66
|
+
"@backstage/backend-test-utils": "^1.11.5",
|
|
67
|
+
"@backstage/cli": "^0.36.4",
|
|
67
68
|
"@backstage/config": "^1.3.8",
|
|
69
|
+
"@backstage/plugin-catalog-backend": "^3.8.0",
|
|
68
70
|
"@backstage/plugin-catalog-common": "^1.1.10"
|
|
69
71
|
},
|
|
70
72
|
"files": [
|
|
71
|
-
"config.
|
|
73
|
+
"config.schema.json",
|
|
72
74
|
"dist"
|
|
73
75
|
],
|
|
74
|
-
"configSchema": "config.
|
|
76
|
+
"configSchema": "config.schema.json"
|
|
75
77
|
}
|
package/config.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2025 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export interface Config {
|
|
17
|
-
scaffolder?: {
|
|
18
|
-
/**
|
|
19
|
-
* Configuration for notifications
|
|
20
|
-
* @visibility frontend
|
|
21
|
-
*/
|
|
22
|
-
notifications?: {
|
|
23
|
-
/**
|
|
24
|
-
* Configuration for template update notifications
|
|
25
|
-
* @visibility frontend
|
|
26
|
-
*/
|
|
27
|
-
templateUpdate?: {
|
|
28
|
-
/**
|
|
29
|
-
* Whether to enable template update notifications
|
|
30
|
-
* @default false
|
|
31
|
-
* @visibility frontend
|
|
32
|
-
*/
|
|
33
|
-
enabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Custom message configuration for notifications
|
|
36
|
-
* @visibility frontend
|
|
37
|
-
*/
|
|
38
|
-
message?: {
|
|
39
|
-
/**
|
|
40
|
-
* The notification title. Supports $ENTITY_DISPLAY_NAME template variable.
|
|
41
|
-
* @default '$ENTITY_DISPLAY_NAME is out of sync with template'
|
|
42
|
-
* @visibility frontend
|
|
43
|
-
*/
|
|
44
|
-
title?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The notification description. Supports $ENTITY_DISPLAY_NAME template variable.
|
|
47
|
-
* @default 'The template used to create $ENTITY_DISPLAY_NAME has been updated to a new version. Review and update your entity to stay in sync with the template.'
|
|
48
|
-
* @visibility frontend
|
|
49
|
-
*/
|
|
50
|
-
description?: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}
|