@backstage/plugin-scaffolder-backend 0.0.0-nightly-2021112723138 → 0.0.0-nightly-20220623347

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 CHANGED
@@ -1,15 +1,18 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
- ## 0.0.0-nightly-2021112723138
3
+ ## 0.15.19
4
4
 
5
5
  ### Patch Changes
6
6
 
7
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
8
10
  - Updated dependencies
9
- - @backstage/backend-common@0.0.0-nightly-2021112723138
10
- - @backstage/plugin-catalog-backend@0.0.0-nightly-2021112723138
11
- - @backstage/integration@0.0.0-nightly-2021112723138
12
- - @backstage/plugin-scaffolder-backend-module-cookiecutter@0.0.0-nightly-2021112723138
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
13
16
 
14
17
  ## 0.15.18
15
18
 
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
- await fs__default["default"].writeFile(backendCommon.resolveSafeChildPath(ctx.workspacePath, "catalog-info.yaml"), yaml__namespace.stringify(entity));
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
  }