screwdriver-data-schema 22.0.3 → 22.1.0
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/regex.js +2 -2
- package/config/template.js +1 -1
- package/package.json +1 -1
- package/plugins/scm.js +8 -1
package/config/regex.js
CHANGED
|
@@ -97,8 +97,8 @@ module.exports = {
|
|
|
97
97
|
// First group: SCM plugin name (e.g. github)
|
|
98
98
|
// Second group: SCM host name (e.g. github.com)
|
|
99
99
|
SCM_CONTEXT: /^([^:]+):([^:]+)$/,
|
|
100
|
-
// Image aliases can only contain A-Z,a-z,0-9,-,_
|
|
101
|
-
IMAGE_ALIAS: /^[\w
|
|
100
|
+
// Image aliases can only contain A-Z,a-z,0-9,-,_,.,:
|
|
101
|
+
IMAGE_ALIAS: /^[\w-.:]+$/,
|
|
102
102
|
// Valid Events for webhook
|
|
103
103
|
WEBHOOK_EVENT: /^~([\w-]+)$/,
|
|
104
104
|
// Provider region. e.g. us-west-1, ap-northeast-2
|
package/config/template.js
CHANGED
|
@@ -53,7 +53,7 @@ const TEMPLATE_MAINTAINER = Joi.string()
|
|
|
53
53
|
const TEMPLATE_IMAGES = Joi.object()
|
|
54
54
|
.pattern(Regex.IMAGE_ALIAS, Job.image)
|
|
55
55
|
.messages({
|
|
56
|
-
'object.unknown': '{{#label}} only supports the following characters A-Z,a-z,0-9,-,_'
|
|
56
|
+
'object.unknown': '{{#label}} only supports the following characters A-Z,a-z,0-9,-,_,.,:'
|
|
57
57
|
})
|
|
58
58
|
.min(1);
|
|
59
59
|
|
package/package.json
CHANGED
package/plugins/scm.js
CHANGED
|
@@ -109,7 +109,14 @@ const ADD_PR_COMMENT = Joi.object()
|
|
|
109
109
|
scmUri,
|
|
110
110
|
token,
|
|
111
111
|
prNum: core.scm.hook.extract('prNum').required(),
|
|
112
|
-
|
|
112
|
+
comments: Joi.array()
|
|
113
|
+
.items(
|
|
114
|
+
Joi.object().keys({
|
|
115
|
+
text: Joi.string().required(),
|
|
116
|
+
keyword: Joi.string().optional()
|
|
117
|
+
})
|
|
118
|
+
)
|
|
119
|
+
.required(),
|
|
113
120
|
jobName,
|
|
114
121
|
pipelineId,
|
|
115
122
|
scmContext
|