@backstage/plugin-scaffolder-backend 0.0.0-nightly-20220607024221 → 0.0.0-nightly-20220610024824

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,6 +1,6 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
- ## 0.0.0-nightly-20220607024221
3
+ ## 0.0.0-nightly-20220610024824
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -29,18 +29,54 @@
29
29
  - Implemented a `list` method on the `DatabaseTaskStore` class to list tasks by an optional `userEntityRef`
30
30
  - Added a route under `/v2/tasks` to list tasks by a `userEntityRef` using the `createdBy` query parameter
31
31
  - c042c5eaff: Add an option to not protect the default branch.
32
+ - f93af969cd: Added the ability to support running of templates that are not in the `default` namespace
32
33
 
33
34
  ### Patch Changes
34
35
 
35
36
  - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
36
37
  - 6901f6be4a: Adds more of an explanation when the `publish:github` scaffolder action fails to create a repository.
37
38
  - Updated dependencies
38
- - @backstage/backend-common@0.0.0-nightly-20220607024221
39
- - @backstage/integration@0.0.0-nightly-20220607024221
40
- - @backstage/catalog-client@0.0.0-nightly-20220607024221
41
- - @backstage/plugin-catalog-backend@0.0.0-nightly-20220607024221
42
- - @backstage/catalog-model@0.0.0-nightly-20220607024221
43
- - @backstage/plugin-scaffolder-common@0.0.0-nightly-20220607024221
39
+ - @backstage/backend-common@0.0.0-nightly-20220610024824
40
+ - @backstage/integration@0.0.0-nightly-20220610024824
41
+ - @backstage/catalog-client@0.0.0-nightly-20220610024824
42
+ - @backstage/plugin-catalog-backend@0.0.0-nightly-20220610024824
43
+ - @backstage/catalog-model@0.0.0-nightly-20220610024824
44
+ - @backstage/plugin-scaffolder-common@0.0.0-nightly-20220610024824
45
+
46
+ ## 1.3.0-next.2
47
+
48
+ ### Minor Changes
49
+
50
+ - ce0d8d7eb1: Fixed a bug in `publish:github` action that didn't permit to add users as collaborators.
51
+ This fix required changing the way parameters are passed to the action.
52
+ In order to add a team as collaborator, now you must use the `team` field instead of `username`.
53
+ In order to add a user as collaborator, you must use the `user` field.
54
+
55
+ It's still possible to use the field `username` but is deprecated in favor of `team`.
56
+
57
+ ```yaml
58
+ - id: publish
59
+ name: Publish
60
+ action: publish:github
61
+ input:
62
+ repoUrl: ...
63
+ collaborators:
64
+ - access: ...
65
+ team: my_team
66
+ - access: ...
67
+ user: my_username
68
+ ```
69
+
70
+ - 582003a059: - Added an optional `list` method on the `TaskBroker` and `TaskStore` interface to list tasks by an optional `userEntityRef`
71
+ - Implemented a `list` method on the `DatabaseTaskStore` class to list tasks by an optional `userEntityRef`
72
+ - Added a route under `/v2/tasks` to list tasks by a `userEntityRef` using the `createdBy` query parameter
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies
77
+ - @backstage/backend-common@0.14.0-next.2
78
+ - @backstage/integration@1.2.1-next.2
79
+ - @backstage/plugin-catalog-backend@1.2.0-next.2
44
80
 
45
81
  ## 1.3.0-next.1
46
82
 
package/dist/index.cjs.js CHANGED
@@ -3590,9 +3590,6 @@ function getEntityBaseUrl(entity) {
3590
3590
  }
3591
3591
  async function findTemplate(options) {
3592
3592
  const { entityRef, token, catalogApi } = options;
3593
- if (entityRef.namespace.toLocaleLowerCase("en-US") !== catalogModel.DEFAULT_NAMESPACE) {
3594
- throw new errors.InputError(`Invalid namespace, only '${catalogModel.DEFAULT_NAMESPACE}' namespace is supported`);
3595
- }
3596
3593
  if (entityRef.kind.toLocaleLowerCase("en-US") !== "template") {
3597
3594
  throw new errors.InputError(`Invalid kind, only 'Template' kind is supported`);
3598
3595
  }