@backstage/plugin-scaffolder-backend-module-gitlab 0.4.1-next.0 → 0.4.1-next.1

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/dist/index.d.ts CHANGED
@@ -1,85 +1,74 @@
1
1
  import * as _backstage_plugin_scaffolder_node from '@backstage/plugin-scaffolder-node';
2
- import { ScmIntegrationRegistry } from '@backstage/integration';
3
2
  import * as _backstage_types from '@backstage/types';
3
+ import { ScmIntegrationRegistry } from '@backstage/integration';
4
4
  import { Config } from '@backstage/config';
5
5
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
6
6
 
7
7
  /**
8
- * Creates an `gitlab:group:ensureExists` Scaffolder action.
9
- *
10
- * @public
11
- */
12
- declare const createGitlabGroupEnsureExistsAction: (options: {
13
- integrations: ScmIntegrationRegistry;
14
- }) => _backstage_plugin_scaffolder_node.TemplateAction<{
15
- path: string[];
16
- repoUrl: string;
17
- token?: string | undefined;
18
- }, {
19
- groupId?: number | undefined;
20
- }>;
21
-
22
- /**
23
- * Creates a `gitlab:projectDeployToken:create` Scaffolder action.
8
+ * Creates a new action that initializes a git repository of the content in the workspace
9
+ * and publishes it to GitLab.
24
10
  *
25
- * @param options - Templating configuration.
26
11
  * @public
27
12
  */
28
- declare const createGitlabProjectDeployTokenAction: (options: {
13
+ declare function createPublishGitlabAction(options: {
29
14
  integrations: ScmIntegrationRegistry;
30
- }) => _backstage_plugin_scaffolder_node.TemplateAction<{
31
- name: string;
15
+ config: Config;
16
+ }): _backstage_plugin_scaffolder_node.TemplateAction<{
32
17
  repoUrl: string;
33
- projectId: string | number;
34
- username?: string | undefined;
18
+ defaultBranch?: string | undefined;
19
+ /** @deprecated in favour of settings.visibility field */
20
+ repoVisibility?: "internal" | "private" | "public" | undefined;
21
+ sourcePath?: string | undefined;
35
22
  token?: string | undefined;
36
- scopes?: string[] | undefined;
37
- }, {
38
- user: string;
39
- deploy_token: string;
40
- }>;
23
+ gitCommitMessage?: string | undefined;
24
+ gitAuthorName?: string | undefined;
25
+ gitAuthorEmail?: string | undefined;
26
+ setUserAsOwner?: boolean | undefined;
27
+ /** @deprecated in favour of settings.topics field */
28
+ topics?: string[] | undefined;
29
+ settings?: {
30
+ path?: string | undefined;
31
+ auto_devops_enabled?: boolean | undefined;
32
+ ci_config_path?: string | undefined;
33
+ description?: string | undefined;
34
+ merge_method?: "merge" | "ff" | "rebase_merge" | undefined;
35
+ squash_option?: "always" | "never" | "default_off" | "default_on" | undefined;
36
+ topics?: string[] | undefined;
37
+ visibility?: "internal" | "private" | "public" | undefined;
38
+ } | undefined;
39
+ branches?: {
40
+ name: string;
41
+ protect?: boolean | undefined;
42
+ create?: boolean | undefined;
43
+ ref?: string | undefined;
44
+ }[] | undefined;
45
+ projectVariables?: {
46
+ key: string;
47
+ value: string;
48
+ description?: string | undefined;
49
+ variable_type?: string | undefined;
50
+ protected?: boolean | undefined;
51
+ masked?: boolean | undefined;
52
+ raw?: boolean | undefined;
53
+ environment_scope?: string | undefined;
54
+ }[] | undefined;
55
+ }, _backstage_types.JsonObject>;
41
56
 
42
57
  /**
43
- * Creates a `gitlab:projectAccessToken:create` Scaffolder action.
58
+ * Creates an `gitlab:group:ensureExists` Scaffolder action.
44
59
  *
45
- * @param options - Templating configuration.
46
60
  * @public
47
61
  */
48
- declare const createGitlabProjectAccessTokenAction: (options: {
62
+ declare const createGitlabGroupEnsureExistsAction: (options: {
49
63
  integrations: ScmIntegrationRegistry;
50
64
  }) => _backstage_plugin_scaffolder_node.TemplateAction<{
65
+ path: string[];
51
66
  repoUrl: string;
52
- projectId: string | number;
53
- name?: string | undefined;
54
67
  token?: string | undefined;
55
- scopes?: string[] | undefined;
56
- expiresAt?: string | undefined;
57
- accessLevel?: number | undefined;
58
68
  }, {
59
- access_token: string;
69
+ groupId?: number | undefined;
60
70
  }>;
61
71
 
62
- /**
63
- * Creates a `gitlab:projectVariable:create` Scaffolder action.
64
- *
65
- * @param options - Templating configuration.
66
- * @public
67
- */
68
- declare const createGitlabProjectVariableAction: (options: {
69
- integrations: ScmIntegrationRegistry;
70
- }) => _backstage_plugin_scaffolder_node.TemplateAction<{
71
- key: string;
72
- value: string;
73
- repoUrl: string;
74
- projectId: string | number;
75
- variableType: string;
76
- raw?: boolean | undefined;
77
- token?: string | undefined;
78
- masked?: boolean | undefined;
79
- environmentScope?: string | undefined;
80
- variableProtected?: boolean | undefined;
81
- }, _backstage_types.JsonObject>;
82
-
83
72
  /**
84
73
  * Gitlab issue types
85
74
  *
@@ -121,56 +110,6 @@ declare const createGitlabIssueAction: (options: {
121
110
  issueIid: number;
122
111
  }>;
123
112
 
124
- /**
125
- * Creates a new action that initializes a git repository of the content in the workspace
126
- * and publishes it to GitLab.
127
- *
128
- * @public
129
- */
130
- declare function createPublishGitlabAction(options: {
131
- integrations: ScmIntegrationRegistry;
132
- config: Config;
133
- }): _backstage_plugin_scaffolder_node.TemplateAction<{
134
- repoUrl: string;
135
- defaultBranch?: string | undefined;
136
- /** @deprecated in favour of settings.visibility field */
137
- repoVisibility?: "internal" | "private" | "public" | undefined;
138
- sourcePath?: string | undefined;
139
- token?: string | undefined;
140
- gitCommitMessage?: string | undefined;
141
- gitAuthorName?: string | undefined;
142
- gitAuthorEmail?: string | undefined;
143
- setUserAsOwner?: boolean | undefined;
144
- /** @deprecated in favour of settings.topics field */
145
- topics?: string[] | undefined;
146
- settings?: {
147
- path?: string | undefined;
148
- auto_devops_enabled?: boolean | undefined;
149
- ci_config_path?: string | undefined;
150
- description?: string | undefined;
151
- merge_method?: "merge" | "ff" | "rebase_merge" | undefined;
152
- squash_option?: "always" | "never" | "default_on" | "default_off" | undefined;
153
- topics?: string[] | undefined;
154
- visibility?: "internal" | "private" | "public" | undefined;
155
- } | undefined;
156
- branches?: {
157
- name: string;
158
- protect?: boolean | undefined;
159
- create?: boolean | undefined;
160
- ref?: string | undefined;
161
- }[] | undefined;
162
- projectVariables?: {
163
- key: string;
164
- value: string;
165
- description?: string | undefined;
166
- variable_type?: string | undefined;
167
- protected?: boolean | undefined;
168
- masked?: boolean | undefined;
169
- raw?: boolean | undefined;
170
- environment_scope?: string | undefined;
171
- }[] | undefined;
172
- }, _backstage_types.JsonObject>;
173
-
174
113
  /**
175
114
  * Create a new action that creates a gitlab merge request.
176
115
  *
@@ -194,6 +133,85 @@ declare const createPublishGitlabMergeRequestAction: (options: {
194
133
  assignee?: string | undefined;
195
134
  }, _backstage_types.JsonObject>;
196
135
 
136
+ /**
137
+ * Creates a `gitlab:pipeline:trigger` Scaffolder action.
138
+ *
139
+ * @param options - Templating configuration.
140
+ * @public
141
+ */
142
+ declare const createTriggerGitlabPipelineAction: (options: {
143
+ integrations: ScmIntegrationRegistry;
144
+ }) => _backstage_plugin_scaffolder_node.TemplateAction<{
145
+ branch: string;
146
+ repoUrl: string;
147
+ projectId: number;
148
+ tokenDescription: string;
149
+ token?: string | undefined;
150
+ }, {
151
+ pipelineUrl: string;
152
+ }>;
153
+
154
+ /**
155
+ * Creates a `gitlab:projectAccessToken:create` Scaffolder action.
156
+ *
157
+ * @param options - Templating configuration.
158
+ * @public
159
+ */
160
+ declare const createGitlabProjectAccessTokenAction: (options: {
161
+ integrations: ScmIntegrationRegistry;
162
+ }) => _backstage_plugin_scaffolder_node.TemplateAction<{
163
+ repoUrl: string;
164
+ projectId: string | number;
165
+ name?: string | undefined;
166
+ token?: string | undefined;
167
+ scopes?: string[] | undefined;
168
+ expiresAt?: string | undefined;
169
+ accessLevel?: number | undefined;
170
+ }, {
171
+ access_token: string;
172
+ }>;
173
+
174
+ /**
175
+ * Creates a `gitlab:projectDeployToken:create` Scaffolder action.
176
+ *
177
+ * @param options - Templating configuration.
178
+ * @public
179
+ */
180
+ declare const createGitlabProjectDeployTokenAction: (options: {
181
+ integrations: ScmIntegrationRegistry;
182
+ }) => _backstage_plugin_scaffolder_node.TemplateAction<{
183
+ name: string;
184
+ repoUrl: string;
185
+ projectId: string | number;
186
+ username?: string | undefined;
187
+ token?: string | undefined;
188
+ scopes?: string[] | undefined;
189
+ }, {
190
+ user: string;
191
+ deploy_token: string;
192
+ }>;
193
+
194
+ /**
195
+ * Creates a `gitlab:projectVariable:create` Scaffolder action.
196
+ *
197
+ * @param options - Templating configuration.
198
+ * @public
199
+ */
200
+ declare const createGitlabProjectVariableAction: (options: {
201
+ integrations: ScmIntegrationRegistry;
202
+ }) => _backstage_plugin_scaffolder_node.TemplateAction<{
203
+ key: string;
204
+ value: string;
205
+ repoUrl: string;
206
+ projectId: string | number;
207
+ variableType: string;
208
+ raw?: boolean | undefined;
209
+ token?: string | undefined;
210
+ masked?: boolean | undefined;
211
+ environmentScope?: string | undefined;
212
+ variableProtected?: boolean | undefined;
213
+ }, _backstage_types.JsonObject>;
214
+
197
215
  /**
198
216
  * Create a new action that commits into a gitlab repository.
199
217
  *
@@ -217,4 +235,4 @@ declare const createGitlabRepoPushAction: (options: {
217
235
  */
218
236
  declare const gitlabModule: () => _backstage_backend_plugin_api.BackendFeature;
219
237
 
220
- export { IssueType, createGitlabGroupEnsureExistsAction, createGitlabIssueAction, createGitlabProjectAccessTokenAction, createGitlabProjectDeployTokenAction, createGitlabProjectVariableAction, createGitlabRepoPushAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, gitlabModule as default };
238
+ export { IssueType, createGitlabGroupEnsureExistsAction, createGitlabIssueAction, createGitlabProjectAccessTokenAction, createGitlabProjectDeployTokenAction, createGitlabProjectVariableAction, createGitlabRepoPushAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createTriggerGitlabPipelineAction, gitlabModule as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-gitlab",
3
- "version": "0.4.1-next.0",
3
+ "version": "0.4.1-next.1",
4
4
  "backstage": {
5
5
  "role": "backend-plugin-module"
6
6
  },
@@ -40,12 +40,12 @@
40
40
  "test": "backstage-cli package test"
41
41
  },
42
42
  "dependencies": {
43
- "@backstage/backend-common": "^0.22.1-next.0",
44
- "@backstage/backend-plugin-api": "^0.6.19-next.0",
43
+ "@backstage/backend-common": "^0.23.0-next.1",
44
+ "@backstage/backend-plugin-api": "^0.6.19-next.1",
45
45
  "@backstage/config": "^1.2.0",
46
46
  "@backstage/errors": "^1.2.4",
47
47
  "@backstage/integration": "^1.11.0",
48
- "@backstage/plugin-scaffolder-node": "^0.4.5-next.0",
48
+ "@backstage/plugin-scaffolder-node": "^0.4.5-next.1",
49
49
  "@gitbeaker/core": "^35.8.0",
50
50
  "@gitbeaker/node": "^35.8.0",
51
51
  "@gitbeaker/rest": "^39.25.0",
@@ -54,9 +54,9 @@
54
54
  "zod": "^3.22.4"
55
55
  },
56
56
  "devDependencies": {
57
- "@backstage/backend-test-utils": "^0.3.9-next.0",
58
- "@backstage/cli": "^0.26.6-next.0",
57
+ "@backstage/backend-test-utils": "^0.4.0-next.1",
58
+ "@backstage/cli": "^0.26.7-next.1",
59
59
  "@backstage/core-app-api": "^1.12.5",
60
- "@backstage/plugin-scaffolder-node-test-utils": "^0.1.5-next.0"
60
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.1.5-next.1"
61
61
  }
62
62
  }