screwdriver-data-schema 21.15.0 → 21.16.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/core/scm.js CHANGED
@@ -251,7 +251,22 @@ const SCHEMA_HOOK = Joi.object()
251
251
  releaseAuthor: Joi.string()
252
252
  .allow('')
253
253
  .optional()
254
- .label('Author of the event')
254
+ .label('Author of the event'),
255
+
256
+ addedFiles: Joi.array()
257
+ .items(Joi.string().allow(''))
258
+ .optional()
259
+ .label('Added files of head commit'),
260
+
261
+ modifiedFiles: Joi.array()
262
+ .items(Joi.string().allow(''))
263
+ .optional()
264
+ .label('Modified files of head commit'),
265
+
266
+ removedFiles: Joi.array()
267
+ .items(Joi.string().allow(''))
268
+ .optional()
269
+ .label('Removed files of head commit')
255
270
  })
256
271
  .label('SCM Hook');
257
272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "21.15.0",
3
+ "version": "21.16.0",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/plugins/scm.js CHANGED
@@ -154,7 +154,7 @@ const GET_FILE = Joi.object()
154
154
  const GET_CHANGED_FILES_INPUT = Joi.object()
155
155
  .keys({
156
156
  type,
157
- payload: Joi.object()
157
+ webhookConfig: Joi.object()
158
158
  .allow(null)
159
159
  .required(),
160
160
  token,