@backstage/plugin-scaffolder-backend-module-gitlab 0.4.1-next.1 → 0.4.1-next.3
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 +26 -0
- package/dist/index.cjs.js +243 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +52 -3
- package/package.json +12 -10
package/dist/index.d.ts
CHANGED
|
@@ -70,15 +70,26 @@ declare const createGitlabGroupEnsureExistsAction: (options: {
|
|
|
70
70
|
}>;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Gitlab issue types
|
|
73
|
+
* Gitlab issue types as specified by gitlab api
|
|
74
74
|
*
|
|
75
75
|
* @public
|
|
76
76
|
*/
|
|
77
77
|
declare enum IssueType {
|
|
78
78
|
ISSUE = "issue",
|
|
79
79
|
INCIDENT = "incident",
|
|
80
|
-
TEST = "test_case"
|
|
80
|
+
TEST = "test_case",
|
|
81
|
+
TASK = "task"
|
|
81
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Gitlab issue state events for modifications
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
declare enum IssueStateEvent {
|
|
89
|
+
CLOSE = "close",
|
|
90
|
+
REOPEN = "reopen"
|
|
91
|
+
}
|
|
92
|
+
|
|
82
93
|
/**
|
|
83
94
|
* Creates a `gitlab:issues:create` Scaffolder action.
|
|
84
95
|
*
|
|
@@ -110,6 +121,44 @@ declare const createGitlabIssueAction: (options: {
|
|
|
110
121
|
issueIid: number;
|
|
111
122
|
}>;
|
|
112
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Creates a `gitlab:issue:edit` Scaffolder action.
|
|
126
|
+
*
|
|
127
|
+
* @param options - Templating configuration.
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
declare const editGitlabIssueAction: (options: {
|
|
131
|
+
integrations: ScmIntegrationRegistry;
|
|
132
|
+
}) => _backstage_plugin_scaffolder_node.TemplateAction<{
|
|
133
|
+
repoUrl: string;
|
|
134
|
+
projectId: number;
|
|
135
|
+
issueIid: number;
|
|
136
|
+
title?: string | undefined;
|
|
137
|
+
labels?: string | undefined;
|
|
138
|
+
description?: string | undefined;
|
|
139
|
+
weight?: number | undefined;
|
|
140
|
+
token?: string | undefined;
|
|
141
|
+
assignees?: number[] | undefined;
|
|
142
|
+
addLabels?: string | undefined;
|
|
143
|
+
confidential?: boolean | undefined;
|
|
144
|
+
milestoneId?: number | undefined;
|
|
145
|
+
removeLabels?: string | undefined;
|
|
146
|
+
stateEvent?: IssueStateEvent | undefined;
|
|
147
|
+
discussionLocked?: boolean | undefined;
|
|
148
|
+
epicId?: number | undefined;
|
|
149
|
+
dueDate?: string | undefined;
|
|
150
|
+
updatedAt?: string | undefined;
|
|
151
|
+
issueType?: IssueType | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
state: string;
|
|
154
|
+
title: string;
|
|
155
|
+
projectId: number;
|
|
156
|
+
updatedAt: string;
|
|
157
|
+
issueUrl: string;
|
|
158
|
+
issueId: number;
|
|
159
|
+
issueIid: number;
|
|
160
|
+
}>;
|
|
161
|
+
|
|
113
162
|
/**
|
|
114
163
|
* Create a new action that creates a gitlab merge request.
|
|
115
164
|
*
|
|
@@ -235,4 +284,4 @@ declare const createGitlabRepoPushAction: (options: {
|
|
|
235
284
|
*/
|
|
236
285
|
declare const gitlabModule: () => _backstage_backend_plugin_api.BackendFeature;
|
|
237
286
|
|
|
238
|
-
export { IssueType, createGitlabGroupEnsureExistsAction, createGitlabIssueAction, createGitlabProjectAccessTokenAction, createGitlabProjectDeployTokenAction, createGitlabProjectVariableAction, createGitlabRepoPushAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createTriggerGitlabPipelineAction, gitlabModule as default };
|
|
287
|
+
export { IssueStateEvent, IssueType, createGitlabGroupEnsureExistsAction, createGitlabIssueAction, createGitlabProjectAccessTokenAction, createGitlabProjectDeployTokenAction, createGitlabProjectVariableAction, createGitlabRepoPushAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createTriggerGitlabPipelineAction, gitlabModule as default, editGitlabIssueAction };
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend-module-gitlab",
|
|
3
|
-
"version": "0.4.1-next.
|
|
3
|
+
"version": "0.4.1-next.3",
|
|
4
4
|
"backstage": {
|
|
5
|
-
"role": "backend-plugin-module"
|
|
5
|
+
"role": "backend-plugin-module",
|
|
6
|
+
"pluginId": "scaffolder",
|
|
7
|
+
"pluginPackage": "@backstage/plugin-scaffolder-backend"
|
|
6
8
|
},
|
|
7
9
|
"publishConfig": {
|
|
8
10
|
"access": "public"
|
|
@@ -40,12 +42,12 @@
|
|
|
40
42
|
"test": "backstage-cli package test"
|
|
41
43
|
},
|
|
42
44
|
"dependencies": {
|
|
43
|
-
"@backstage/backend-common": "^0.23.0-next.
|
|
44
|
-
"@backstage/backend-plugin-api": "^0.6.19-next.
|
|
45
|
+
"@backstage/backend-common": "^0.23.0-next.3",
|
|
46
|
+
"@backstage/backend-plugin-api": "^0.6.19-next.3",
|
|
45
47
|
"@backstage/config": "^1.2.0",
|
|
46
48
|
"@backstage/errors": "^1.2.4",
|
|
47
|
-
"@backstage/integration": "^1.
|
|
48
|
-
"@backstage/plugin-scaffolder-node": "^0.4.5-next.
|
|
49
|
+
"@backstage/integration": "^1.12.0-next.1",
|
|
50
|
+
"@backstage/plugin-scaffolder-node": "^0.4.5-next.3",
|
|
49
51
|
"@gitbeaker/core": "^35.8.0",
|
|
50
52
|
"@gitbeaker/node": "^35.8.0",
|
|
51
53
|
"@gitbeaker/rest": "^39.25.0",
|
|
@@ -54,9 +56,9 @@
|
|
|
54
56
|
"zod": "^3.22.4"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
|
-
"@backstage/backend-test-utils": "^0.4.0-next.
|
|
58
|
-
"@backstage/cli": "^0.26.7-next.
|
|
59
|
-
"@backstage/core-app-api": "^1.12.
|
|
60
|
-
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.5-next.
|
|
59
|
+
"@backstage/backend-test-utils": "^0.4.0-next.3",
|
|
60
|
+
"@backstage/cli": "^0.26.7-next.3",
|
|
61
|
+
"@backstage/core-app-api": "^1.12.6-next.0",
|
|
62
|
+
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.5-next.3"
|
|
61
63
|
}
|
|
62
64
|
}
|