@backstage/plugin-scaffolder-backend 0.15.18 → 0.15.19
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 +14 -0
- package/dist/index.cjs.js +10 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -58
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend
|
|
2
2
|
|
|
3
|
+
## 0.15.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7d4b4e937c: Uptake changes to the GitHub Credentials Provider interface.
|
|
8
|
+
- d078377f67: Support navigating back to pre-filled templates to update inputs of scaffolder tasks for resubmission
|
|
9
|
+
- 5f8ceba1b1: Support custom file name for `catalog:write` action
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/backend-common@0.10.1
|
|
12
|
+
- @backstage/plugin-catalog-backend@0.19.4
|
|
13
|
+
- @backstage/plugin-scaffolder-common@0.1.2
|
|
14
|
+
- @backstage/integration@0.7.0
|
|
15
|
+
- @backstage/plugin-scaffolder-backend-module-cookiecutter@0.1.7
|
|
16
|
+
|
|
3
17
|
## 0.15.18
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -169,6 +169,11 @@ function createCatalogWriteAction() {
|
|
|
169
169
|
input: {
|
|
170
170
|
type: "object",
|
|
171
171
|
properties: {
|
|
172
|
+
filePath: {
|
|
173
|
+
title: "Catalog file path",
|
|
174
|
+
description: "Defaults to catalog-info.yaml",
|
|
175
|
+
type: "string"
|
|
176
|
+
},
|
|
172
177
|
entity: {
|
|
173
178
|
title: "Entity info to write catalog-info.yaml",
|
|
174
179
|
description: "You can provide the same values used in the Entity schema.",
|
|
@@ -179,8 +184,9 @@ function createCatalogWriteAction() {
|
|
|
179
184
|
},
|
|
180
185
|
async handler(ctx) {
|
|
181
186
|
ctx.logStream.write(`Writing catalog-info.yaml`);
|
|
182
|
-
const { entity } = ctx.input;
|
|
183
|
-
|
|
187
|
+
const { filePath, entity } = ctx.input;
|
|
188
|
+
const path = filePath != null ? filePath : "catalog-info.yaml";
|
|
189
|
+
await fs__default["default"].writeFile(backendCommon.resolveSafeChildPath(ctx.workspacePath, path), yaml__namespace.stringify(entity));
|
|
184
190
|
}
|
|
185
191
|
});
|
|
186
192
|
}
|
|
@@ -1147,7 +1153,7 @@ class OctokitProvider {
|
|
|
1147
1153
|
constructor(integrations) {
|
|
1148
1154
|
this.integrations = integrations;
|
|
1149
1155
|
this.credentialsProviders = new Map(integrations.github.list().map((integration$1) => {
|
|
1150
|
-
const provider = integration.
|
|
1156
|
+
const provider = integration.SingleInstanceGithubCredentialsProvider.create(integration$1.config);
|
|
1151
1157
|
return [integration$1.config.host, provider];
|
|
1152
1158
|
}));
|
|
1153
1159
|
}
|
|
@@ -1391,7 +1397,7 @@ const defaultClientFactory = async ({
|
|
|
1391
1397
|
if (!integrationConfig) {
|
|
1392
1398
|
throw new errors.InputError(`No integration for host ${host}`);
|
|
1393
1399
|
}
|
|
1394
|
-
const credentialsProvider = integration.
|
|
1400
|
+
const credentialsProvider = integration.SingleInstanceGithubCredentialsProvider.create(integrationConfig);
|
|
1395
1401
|
if (!credentialsProvider) {
|
|
1396
1402
|
throw new errors.InputError(`No matching credentials for host ${host}, please check your integrations config`);
|
|
1397
1403
|
}
|