@backstage/plugin-scaffolder-backend-module-gitlab 0.5.0-next.0 → 0.5.0-next.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +7 -40
  3. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @backstage/plugin-scaffolder-backend-module-gitlab
2
2
 
3
+ ## 0.5.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d1670f: Update README installation instructions
8
+ - Updated dependencies
9
+ - @backstage/backend-common@0.25.0-next.2
10
+ - @backstage/backend-plugin-api@1.0.0-next.2
11
+ - @backstage/integration@1.15.0-next.0
12
+ - @backstage/config@1.2.0
13
+ - @backstage/errors@1.2.4
14
+ - @backstage/plugin-scaffolder-node@0.4.11-next.2
15
+
16
+ ## 0.5.0-next.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @backstage/backend-common@0.25.0-next.1
22
+ - @backstage/backend-plugin-api@0.9.0-next.1
23
+ - @backstage/config@1.2.0
24
+ - @backstage/errors@1.2.4
25
+ - @backstage/integration@1.14.0
26
+ - @backstage/plugin-scaffolder-node@0.4.11-next.1
27
+
3
28
  ## 0.5.0-next.0
4
29
 
5
30
  ### Minor Changes
package/README.md CHANGED
@@ -13,50 +13,17 @@ Here you can find all Gitlab related features to improve your scaffolder:
13
13
  yarn --cwd packages/backend add @backstage/plugin-scaffolder-backend-module-gitlab
14
14
  ```
15
15
 
16
- Configure the action:
17
- (you can check the [docs](https://backstage.io/docs/features/software-templates/writing-custom-actions#registering-custom-actions) to see all options):
16
+ Then ensure that both the scaffolder and this module are added to your backend:
18
17
 
19
18
  ```typescript
20
- // packages/backend/src/plugins/scaffolder.ts
21
-
22
- import {
23
- createGitlabProjectAccessTokenAction,
24
- createGitlabProjectDeployTokenAction,
25
- createGitlabProjectVariableAction,
26
- createGitlabGroupEnsureExistsAction,
27
- createGitlabIssueAction,
28
- } from '@backstage/plugin-scaffolder-backend-module-gitlab';
29
-
30
- // Create BuiltIn Actions
31
- const builtInActions = createBuiltinActions({
32
- integrations,
33
- catalogClient,
34
- config: env.config,
35
- reader: env.reader,
36
- });
37
-
38
- // Add Gitlab Actions
39
- const actions = [
40
- ...builtInActions,
41
- createGitlabProjectAccessTokenAction({ integrations: integrations }),
42
- createGitlabProjectDeployTokenAction({ integrations: integrations }),
43
- createGitlabProjectVariableAction({ integrations: integrations }),
44
- createGitlabGroupEnsureExistsAction({ integrations: integrations }),
45
- createGitlabIssueAction({ integrations: integrations }),
46
- ];
47
-
48
- // Create Scaffolder Router
49
- return await createRouter({
50
- catalogClient,
51
- actions,
52
- logger: env.logger,
53
- config: env.config,
54
- database: env.database,
55
- reader: env.reader,
56
- });
19
+ // In packages/backend/src/index.ts
20
+ const backend = createBackend();
21
+ // ...
22
+ backend.add(import('@backstage/plugin-scaffolder-backend/alpha'));
23
+ backend.add(import('@backstage/plugin-scaffolder-backend-module-gitlab'));
57
24
  ```
58
25
 
59
- After that you can use the action in your template:
26
+ After that you can use the actions in your template:
60
27
 
61
28
  ```yaml
62
29
  apiVersion: scaffolder.backstage.io/v1beta3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-gitlab",
3
- "version": "0.5.0-next.0",
3
+ "version": "0.5.0-next.2",
4
4
  "backstage": {
5
5
  "role": "backend-plugin-module",
6
6
  "pluginId": "scaffolder",
@@ -42,12 +42,12 @@
42
42
  "test": "backstage-cli package test"
43
43
  },
44
44
  "dependencies": {
45
- "@backstage/backend-common": "^0.25.0-next.0",
46
- "@backstage/backend-plugin-api": "^0.9.0-next.0",
45
+ "@backstage/backend-common": "^0.25.0-next.2",
46
+ "@backstage/backend-plugin-api": "^1.0.0-next.2",
47
47
  "@backstage/config": "^1.2.0",
48
48
  "@backstage/errors": "^1.2.4",
49
- "@backstage/integration": "^1.14.0",
50
- "@backstage/plugin-scaffolder-node": "^0.4.11-next.0",
49
+ "@backstage/integration": "^1.15.0-next.0",
50
+ "@backstage/plugin-scaffolder-node": "^0.4.11-next.2",
51
51
  "@gitbeaker/core": "^35.8.0",
52
52
  "@gitbeaker/node": "^35.8.0",
53
53
  "@gitbeaker/rest": "^39.25.0",
@@ -56,9 +56,9 @@
56
56
  "zod": "^3.22.4"
57
57
  },
58
58
  "devDependencies": {
59
- "@backstage/backend-test-utils": "^0.6.0-next.0",
60
- "@backstage/cli": "^0.27.1-next.0",
61
- "@backstage/core-app-api": "^1.14.2",
62
- "@backstage/plugin-scaffolder-node-test-utils": "^0.1.12-next.0"
59
+ "@backstage/backend-test-utils": "^1.0.0-next.2",
60
+ "@backstage/cli": "^0.27.1-next.2",
61
+ "@backstage/core-app-api": "^1.14.3-next.0",
62
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.1.12-next.2"
63
63
  }
64
64
  }