screwdriver-data-schema 22.0.4 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugins/scm.js +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "22.0.4",
3
+ "version": "22.1.0",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- comment: Joi.string().required(),
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