screwdriver-data-schema 23.4.0 → 23.5.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/config/pipelineTemplate.js +3 -1
- package/package.json +1 -1
- package/plugins/scm.js +6 -0
|
@@ -6,6 +6,7 @@ const Annotations = require('./annotations');
|
|
|
6
6
|
const Parameters = require('./parameters');
|
|
7
7
|
const Template = require('./template');
|
|
8
8
|
const Regex = require('./regex');
|
|
9
|
+
const WorkflowGraph = require('./workflowGraph');
|
|
9
10
|
|
|
10
11
|
const SCHEMA_CONFIG = Joi.object()
|
|
11
12
|
.keys({
|
|
@@ -15,7 +16,8 @@ const SCHEMA_CONFIG = Joi.object()
|
|
|
15
16
|
annotations: Annotations.annotations,
|
|
16
17
|
cache: BaseSchema.cache,
|
|
17
18
|
subscribe: BaseSchema.subscribe,
|
|
18
|
-
stages: BaseSchema.stages
|
|
19
|
+
stages: BaseSchema.stages,
|
|
20
|
+
workflowGraph: WorkflowGraph.workflowGraph
|
|
19
21
|
})
|
|
20
22
|
.unknown(false);
|
|
21
23
|
|
package/package.json
CHANGED
package/plugins/scm.js
CHANGED
|
@@ -26,6 +26,7 @@ const ADD_WEBHOOK = Joi.object()
|
|
|
26
26
|
.keys({
|
|
27
27
|
scmUri,
|
|
28
28
|
token,
|
|
29
|
+
scmRepo,
|
|
29
30
|
actions: Joi.array().items(Joi.string()),
|
|
30
31
|
webhookUrl: Joi.string().uri({
|
|
31
32
|
scheme: ['http', 'https']
|
|
@@ -108,6 +109,7 @@ const ADD_PR_COMMENT = Joi.object()
|
|
|
108
109
|
.keys({
|
|
109
110
|
scmUri,
|
|
110
111
|
token,
|
|
112
|
+
scmRepo,
|
|
111
113
|
prNum: core.scm.hook.extract('prNum').required(),
|
|
112
114
|
comments: Joi.array()
|
|
113
115
|
.items(
|
|
@@ -127,6 +129,7 @@ const UPDATE_COMMIT_STATUS = Joi.object()
|
|
|
127
129
|
.keys({
|
|
128
130
|
scmUri,
|
|
129
131
|
token,
|
|
132
|
+
scmRepo,
|
|
130
133
|
sha,
|
|
131
134
|
buildStatus: Joi.string()
|
|
132
135
|
.required()
|
|
@@ -156,6 +159,7 @@ const GET_CHANGED_FILES_INPUT = Joi.object()
|
|
|
156
159
|
type,
|
|
157
160
|
webhookConfig: Joi.object().allow(null).required(),
|
|
158
161
|
token,
|
|
162
|
+
scmRepo,
|
|
159
163
|
scmContext,
|
|
160
164
|
scmUri: scmUri.optional(),
|
|
161
165
|
prNum
|
|
@@ -180,6 +184,7 @@ const DECORATE_COMMIT = Joi.object()
|
|
|
180
184
|
scmUri,
|
|
181
185
|
sha,
|
|
182
186
|
token,
|
|
187
|
+
scmRepo,
|
|
183
188
|
scmContext
|
|
184
189
|
})
|
|
185
190
|
.required();
|
|
@@ -205,6 +210,7 @@ const GET_BRANCH_LIST = Joi.object()
|
|
|
205
210
|
.keys({
|
|
206
211
|
scmUri,
|
|
207
212
|
token,
|
|
213
|
+
scmRepo,
|
|
208
214
|
scmContext
|
|
209
215
|
})
|
|
210
216
|
.required();
|