@backstage/plugin-scaffolder-backend-module-gitlab 0.9.2-next.1 → 0.9.2-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.
- package/CHANGELOG.md +12 -0
- package/dist/actions/gitlab.cjs.js +106 -235
- package/dist/actions/gitlab.cjs.js.map +1 -1
- package/dist/actions/gitlabGroupEnsureExists.cjs.js +24 -20
- package/dist/actions/gitlabGroupEnsureExists.cjs.js.map +1 -1
- package/dist/actions/gitlabIssueCreate.cjs.js +75 -52
- package/dist/actions/gitlabIssueCreate.cjs.js.map +1 -1
- package/dist/actions/gitlabIssueEdit.cjs.js +86 -68
- package/dist/actions/gitlabIssueEdit.cjs.js.map +1 -1
- package/dist/actions/gitlabPipelineTrigger.cjs.js +26 -21
- package/dist/actions/gitlabPipelineTrigger.cjs.js.map +1 -1
- package/dist/actions/gitlabProjectAccessTokenCreate.cjs.js +18 -13
- package/dist/actions/gitlabProjectAccessTokenCreate.cjs.js.map +1 -1
- package/dist/actions/gitlabProjectDeployTokenCreate.cjs.js +27 -15
- package/dist/actions/gitlabProjectDeployTokenCreate.cjs.js.map +1 -1
- package/dist/actions/gitlabProjectMigrate.cjs.js +21 -46
- package/dist/actions/gitlabProjectMigrate.cjs.js.map +1 -1
- package/dist/actions/gitlabProjectVariableCreate.cjs.js +32 -20
- package/dist/actions/gitlabProjectVariableCreate.cjs.js.map +1 -1
- package/dist/actions/gitlabRepoPush.cjs.js +31 -56
- package/dist/actions/gitlabRepoPush.cjs.js.map +1 -1
- package/dist/commonGitlabConfig.cjs.js +1 -4
- package/dist/commonGitlabConfig.cjs.js.map +1 -1
- package/dist/index.d.ts +94 -85
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _backstage_plugin_scaffolder_node from '@backstage/plugin-scaffolder-node';
|
|
2
|
-
import * as _backstage_types from '@backstage/types';
|
|
3
2
|
import { ScmIntegrationRegistry } from '@backstage/integration';
|
|
4
3
|
import { Config } from '@backstage/config';
|
|
5
4
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
@@ -15,49 +14,53 @@ declare function createPublishGitlabAction(options: {
|
|
|
15
14
|
config: Config;
|
|
16
15
|
}): _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
17
16
|
repoUrl: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/** @deprecated in favour of settings.topics field */
|
|
30
|
-
topics?: string[];
|
|
17
|
+
repoVisibility?: "internal" | "private" | "public" | undefined;
|
|
18
|
+
defaultBranch?: string | undefined;
|
|
19
|
+
gitCommitMessage?: string | undefined;
|
|
20
|
+
gitAuthorName?: string | undefined;
|
|
21
|
+
gitAuthorEmail?: string | undefined;
|
|
22
|
+
signCommit?: boolean | undefined;
|
|
23
|
+
sourcePath?: string | boolean | undefined;
|
|
24
|
+
skipExisting?: boolean | undefined;
|
|
25
|
+
token?: string | undefined;
|
|
26
|
+
setUserAsOwner?: boolean | undefined;
|
|
27
|
+
topics?: string[] | undefined;
|
|
31
28
|
settings?: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
only_allow_merge_if_all_discussions_are_resolved?: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
branches?:
|
|
29
|
+
visibility?: "internal" | "private" | "public" | undefined;
|
|
30
|
+
path?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
merge_method?: "merge" | "rebase_merge" | "ff" | undefined;
|
|
33
|
+
topics?: string[] | undefined;
|
|
34
|
+
auto_devops_enabled?: boolean | undefined;
|
|
35
|
+
only_allow_merge_if_pipeline_succeeds?: boolean | undefined;
|
|
36
|
+
allow_merge_on_skipped_pipeline?: boolean | undefined;
|
|
37
|
+
only_allow_merge_if_all_discussions_are_resolved?: boolean | undefined;
|
|
38
|
+
squash_option?: "always" | "never" | "default_on" | "default_off" | undefined;
|
|
39
|
+
ci_config_path?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
branches?: {
|
|
45
42
|
name: string;
|
|
46
|
-
|
|
47
|
-
create?: boolean;
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
projectVariables?:
|
|
43
|
+
ref?: string | undefined;
|
|
44
|
+
create?: boolean | undefined;
|
|
45
|
+
protect?: boolean | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
projectVariables?: {
|
|
51
48
|
key: string;
|
|
52
49
|
value: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
protected?: boolean;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
environment_scope?: string;
|
|
59
|
-
}
|
|
60
|
-
},
|
|
50
|
+
raw?: boolean | undefined;
|
|
51
|
+
description?: string | undefined;
|
|
52
|
+
protected?: boolean | undefined;
|
|
53
|
+
variable_type?: "file" | "env_var" | undefined;
|
|
54
|
+
masked?: boolean | undefined;
|
|
55
|
+
environment_scope?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
remoteUrl: string;
|
|
59
|
+
repoContentsUrl: string;
|
|
60
|
+
projectId: number;
|
|
61
|
+
commitHash: string;
|
|
62
|
+
created: boolean;
|
|
63
|
+
}, "v2">;
|
|
61
64
|
|
|
62
65
|
/**
|
|
63
66
|
* Creates an `gitlab:group:ensureExists` Scaffolder action.
|
|
@@ -67,15 +70,15 @@ declare function createPublishGitlabAction(options: {
|
|
|
67
70
|
declare const createGitlabGroupEnsureExistsAction: (options: {
|
|
68
71
|
integrations: ScmIntegrationRegistry;
|
|
69
72
|
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
73
|
+
repoUrl: string;
|
|
70
74
|
path: (string | {
|
|
71
75
|
name: string;
|
|
72
76
|
slug: string;
|
|
73
77
|
})[];
|
|
74
|
-
repoUrl: string;
|
|
75
78
|
token?: string | undefined;
|
|
76
79
|
}, {
|
|
77
80
|
groupId?: number | undefined;
|
|
78
|
-
}, "
|
|
81
|
+
}, "v2">;
|
|
79
82
|
|
|
80
83
|
/**
|
|
81
84
|
* Gitlab issue types as specified by gitlab api
|
|
@@ -107,27 +110,27 @@ declare enum IssueStateEvent {
|
|
|
107
110
|
declare const createGitlabIssueAction: (options: {
|
|
108
111
|
integrations: ScmIntegrationRegistry;
|
|
109
112
|
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
110
|
-
title: string;
|
|
111
113
|
repoUrl: string;
|
|
112
114
|
projectId: number;
|
|
113
|
-
|
|
114
|
-
description?: string | undefined;
|
|
115
|
-
weight?: number | undefined;
|
|
115
|
+
title: string;
|
|
116
116
|
token?: string | undefined;
|
|
117
117
|
assignees?: number[] | undefined;
|
|
118
|
-
createdAt?: string | undefined;
|
|
119
118
|
confidential?: boolean | undefined;
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
description?: string | undefined;
|
|
120
|
+
createdAt?: string | undefined;
|
|
122
121
|
dueDate?: string | undefined;
|
|
123
122
|
discussionToResolve?: string | undefined;
|
|
123
|
+
epicId?: number | undefined;
|
|
124
|
+
labels?: string | undefined;
|
|
124
125
|
issueType?: IssueType | undefined;
|
|
125
126
|
mergeRequestToResolveDiscussionsOf?: number | undefined;
|
|
127
|
+
milestoneId?: number | undefined;
|
|
128
|
+
weight?: number | undefined;
|
|
126
129
|
}, {
|
|
127
130
|
issueUrl: string;
|
|
128
131
|
issueId: number;
|
|
129
132
|
issueIid: number;
|
|
130
|
-
}, "
|
|
133
|
+
}, "v2">;
|
|
131
134
|
|
|
132
135
|
/**
|
|
133
136
|
* Creates a `gitlab:issue:edit` Scaffolder action.
|
|
@@ -141,31 +144,31 @@ declare const editGitlabIssueAction: (options: {
|
|
|
141
144
|
repoUrl: string;
|
|
142
145
|
projectId: number;
|
|
143
146
|
issueIid: number;
|
|
144
|
-
title?: string | undefined;
|
|
145
|
-
labels?: string | undefined;
|
|
146
|
-
description?: string | undefined;
|
|
147
|
-
weight?: number | undefined;
|
|
148
147
|
token?: string | undefined;
|
|
149
|
-
assignees?: number[] | undefined;
|
|
150
148
|
addLabels?: string | undefined;
|
|
149
|
+
assignees?: number[] | undefined;
|
|
151
150
|
confidential?: boolean | undefined;
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
discussionLocked?: boolean | undefined;
|
|
153
|
+
dueDate?: string | undefined;
|
|
154
|
+
epicId?: number | undefined;
|
|
155
|
+
issueType?: IssueType | undefined;
|
|
156
|
+
labels?: string | undefined;
|
|
152
157
|
milestoneId?: number | undefined;
|
|
153
158
|
removeLabels?: string | undefined;
|
|
154
159
|
stateEvent?: IssueStateEvent | undefined;
|
|
155
|
-
|
|
156
|
-
epicId?: number | undefined;
|
|
157
|
-
dueDate?: string | undefined;
|
|
160
|
+
title?: string | undefined;
|
|
158
161
|
updatedAt?: string | undefined;
|
|
159
|
-
|
|
162
|
+
weight?: number | undefined;
|
|
160
163
|
}, {
|
|
161
|
-
state: string;
|
|
162
|
-
title: string;
|
|
163
|
-
projectId: number;
|
|
164
|
-
updatedAt: string;
|
|
165
164
|
issueUrl: string;
|
|
165
|
+
projectId: number;
|
|
166
166
|
issueId: number;
|
|
167
167
|
issueIid: number;
|
|
168
|
-
|
|
168
|
+
state: string;
|
|
169
|
+
title: string;
|
|
170
|
+
updatedAt: string;
|
|
171
|
+
}, "v2">;
|
|
169
172
|
|
|
170
173
|
/**
|
|
171
174
|
* Create a new action that creates a GitLab merge request.
|
|
@@ -206,15 +209,15 @@ declare const createPublishGitlabMergeRequestAction: (options: {
|
|
|
206
209
|
declare const createTriggerGitlabPipelineAction: (options: {
|
|
207
210
|
integrations: ScmIntegrationRegistry;
|
|
208
211
|
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
209
|
-
branch: string;
|
|
210
212
|
repoUrl: string;
|
|
211
213
|
projectId: number;
|
|
212
214
|
tokenDescription: string;
|
|
215
|
+
branch: string;
|
|
213
216
|
token?: string | undefined;
|
|
214
217
|
variables?: Record<string, string> | undefined;
|
|
215
218
|
}, {
|
|
216
219
|
pipelineUrl: string;
|
|
217
|
-
}, "
|
|
220
|
+
}, "v2">;
|
|
218
221
|
|
|
219
222
|
/**
|
|
220
223
|
* Creates a `gitlab:projectAccessToken:create` Scaffolder action.
|
|
@@ -225,16 +228,16 @@ declare const createTriggerGitlabPipelineAction: (options: {
|
|
|
225
228
|
declare const createGitlabProjectAccessTokenAction: (options: {
|
|
226
229
|
integrations: ScmIntegrationRegistry;
|
|
227
230
|
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
228
|
-
repoUrl: string;
|
|
229
231
|
projectId: string | number;
|
|
230
|
-
|
|
232
|
+
repoUrl: string;
|
|
231
233
|
token?: string | undefined;
|
|
234
|
+
name?: string | undefined;
|
|
235
|
+
accessLevel?: number | undefined;
|
|
232
236
|
scopes?: string[] | undefined;
|
|
233
237
|
expiresAt?: string | undefined;
|
|
234
|
-
accessLevel?: number | undefined;
|
|
235
238
|
}, {
|
|
236
239
|
access_token: string;
|
|
237
|
-
}, "
|
|
240
|
+
}, "v2">;
|
|
238
241
|
|
|
239
242
|
/**
|
|
240
243
|
* Creates a `gitlab:projectDeployToken:create` Scaffolder action.
|
|
@@ -245,16 +248,16 @@ declare const createGitlabProjectAccessTokenAction: (options: {
|
|
|
245
248
|
declare const createGitlabProjectDeployTokenAction: (options: {
|
|
246
249
|
integrations: ScmIntegrationRegistry;
|
|
247
250
|
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
248
|
-
name: string;
|
|
249
|
-
scopes: string[];
|
|
250
251
|
repoUrl: string;
|
|
251
252
|
projectId: string | number;
|
|
252
|
-
|
|
253
|
+
name: string;
|
|
254
|
+
scopes: string[];
|
|
253
255
|
token?: string | undefined;
|
|
256
|
+
username?: string | undefined;
|
|
254
257
|
}, {
|
|
255
|
-
user: string;
|
|
256
258
|
deploy_token: string;
|
|
257
|
-
|
|
259
|
+
user: string;
|
|
260
|
+
}, "v2">;
|
|
258
261
|
|
|
259
262
|
/**
|
|
260
263
|
* Creates a `gitlab:projectVariable:create` Scaffolder action.
|
|
@@ -265,17 +268,19 @@ declare const createGitlabProjectDeployTokenAction: (options: {
|
|
|
265
268
|
declare const createGitlabProjectVariableAction: (options: {
|
|
266
269
|
integrations: ScmIntegrationRegistry;
|
|
267
270
|
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
268
|
-
key: string;
|
|
269
|
-
value: string;
|
|
270
271
|
repoUrl: string;
|
|
271
272
|
projectId: string | number;
|
|
273
|
+
key: string;
|
|
274
|
+
value: string;
|
|
272
275
|
variableType: string;
|
|
273
|
-
raw?: boolean | undefined;
|
|
274
276
|
token?: string | undefined;
|
|
277
|
+
variableProtected?: boolean | undefined;
|
|
275
278
|
masked?: boolean | undefined;
|
|
279
|
+
raw?: boolean | undefined;
|
|
276
280
|
environmentScope?: string | undefined;
|
|
277
|
-
|
|
278
|
-
|
|
281
|
+
}, {
|
|
282
|
+
[x: string]: any;
|
|
283
|
+
}, "v2">;
|
|
279
284
|
|
|
280
285
|
/**
|
|
281
286
|
* Create a new action that commits into a gitlab repository.
|
|
@@ -288,11 +293,15 @@ declare const createGitlabRepoPushAction: (options: {
|
|
|
288
293
|
repoUrl: string;
|
|
289
294
|
branchName: string;
|
|
290
295
|
commitMessage: string;
|
|
291
|
-
sourcePath?: string;
|
|
292
|
-
targetPath?: string;
|
|
293
|
-
token?: string;
|
|
294
|
-
commitAction?: "
|
|
295
|
-
},
|
|
296
|
+
sourcePath?: string | undefined;
|
|
297
|
+
targetPath?: string | undefined;
|
|
298
|
+
token?: string | undefined;
|
|
299
|
+
commitAction?: "update" | "delete" | "create" | undefined;
|
|
300
|
+
}, {
|
|
301
|
+
projectid: string;
|
|
302
|
+
projectPath: string;
|
|
303
|
+
commitHash: string;
|
|
304
|
+
}, "v2">;
|
|
296
305
|
|
|
297
306
|
/**
|
|
298
307
|
* @public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend-module-gitlab",
|
|
3
|
-
"version": "0.9.2-next.
|
|
3
|
+
"version": "0.9.2-next.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "backend-plugin-module",
|
|
6
6
|
"pluginId": "scaffolder",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@backstage/config": "1.3.2",
|
|
58
58
|
"@backstage/errors": "1.2.7",
|
|
59
59
|
"@backstage/integration": "1.17.0",
|
|
60
|
-
"@backstage/plugin-scaffolder-node": "0.
|
|
60
|
+
"@backstage/plugin-scaffolder-node": "0.9.0-next.2",
|
|
61
61
|
"@gitbeaker/rest": "^41.2.0",
|
|
62
62
|
"luxon": "^3.0.0",
|
|
63
63
|
"winston": "^3.2.1",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"zod": "^3.22.4"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@backstage/backend-test-utils": "1.6.0-next.
|
|
69
|
-
"@backstage/cli": "0.
|
|
68
|
+
"@backstage/backend-test-utils": "1.6.0-next.2",
|
|
69
|
+
"@backstage/cli": "0.33.0-next.1",
|
|
70
70
|
"@backstage/core-app-api": "1.17.0",
|
|
71
|
-
"@backstage/plugin-scaffolder-node-test-utils": "0.
|
|
71
|
+
"@backstage/plugin-scaffolder-node-test-utils": "0.3.0-next.2"
|
|
72
72
|
}
|
|
73
73
|
}
|