|
257 | 257 | "properties": { |
258 | 258 | "channels": { |
259 | 259 | "type": "array", |
| 260 | + "minItems": 1, |
260 | 261 | "items": { |
261 | | - "type": "string" |
| 262 | + "description": "A Slack channel as `#channel`, `team#channel`, `@user`, `team@user`, or a Slack ID. Must not be empty or contain whitespace.", |
| 263 | + "type": "string", |
| 264 | + "pattern": "^\\S+$" |
262 | 265 | } |
263 | 266 | }, |
264 | 267 | "message": { |
265 | 268 | "type": "string" |
266 | 269 | } |
267 | | - } |
| 270 | + }, |
| 271 | + "required": ["channels"] |
268 | 272 | }, |
269 | 273 | "notifySlack": { |
270 | 274 | "type": "object", |
271 | 275 | "properties": { |
272 | 276 | "slack": { |
273 | 277 | "oneOf": [ |
274 | 278 | { |
275 | | - "type": "string" |
| 279 | + "description": "A Slack channel as `#channel`, `team#channel`, `@user`, `team@user`, or a Slack ID. Must not be empty or contain whitespace.", |
| 280 | + "type": "string", |
| 281 | + "pattern": "^\\S+$" |
276 | 282 | }, |
277 | 283 | { |
278 | 284 | "$ref": "#/definitions/notifySlackObject" |
|
332 | 338 | "type": "object", |
333 | 339 | "properties": { |
334 | 340 | "github_check": { |
335 | | - "type": "object" |
| 341 | + "type": "object", |
| 342 | + "properties": { |
| 343 | + "name": { |
| 344 | + "description": "The name of the GitHub check", |
| 345 | + "type": "string" |
| 346 | + }, |
| 347 | + "output": { |
| 348 | + "type": "object", |
| 349 | + "properties": { |
| 350 | + "title": { |
| 351 | + "description": "The title of the GitHub check's output", |
| 352 | + "type": "string" |
| 353 | + }, |
| 354 | + "summary": { |
| 355 | + "description": "The summary of the GitHub check's output", |
| 356 | + "type": "string" |
| 357 | + }, |
| 358 | + "text": { |
| 359 | + "description": "The details of the GitHub check's output. Supports Markdown", |
| 360 | + "type": "string" |
| 361 | + }, |
| 362 | + "annotations": { |
| 363 | + "type": "array", |
| 364 | + "items": { |
| 365 | + "type": "object", |
| 366 | + "properties": { |
| 367 | + "path": { |
| 368 | + "description": "The path of the file to add an annotation to, relative to the repository root", |
| 369 | + "type": "string" |
| 370 | + }, |
| 371 | + "start_line": { |
| 372 | + "description": "The start line of the annotation", |
| 373 | + "type": "integer" |
| 374 | + }, |
| 375 | + "end_line": { |
| 376 | + "description": "The end line of the annotation", |
| 377 | + "type": "integer" |
| 378 | + }, |
| 379 | + "start_column": { |
| 380 | + "description": "The start column of the annotation. Only valid when start_line and end_line are equal", |
| 381 | + "type": "integer" |
| 382 | + }, |
| 383 | + "end_column": { |
| 384 | + "description": "The end column of the annotation. Only valid when start_line and end_line are equal", |
| 385 | + "type": "integer" |
| 386 | + }, |
| 387 | + "annotation_level": { |
| 388 | + "type": "string", |
| 389 | + "description": "The level of the annotation", |
| 390 | + "enum": ["notice", "warning", "failure"] |
| 391 | + }, |
| 392 | + "message": { |
| 393 | + "description": "The message for the annotation", |
| 394 | + "type": "string" |
| 395 | + }, |
| 396 | + "title": { |
| 397 | + "description": "The title for the annotation", |
| 398 | + "type": "string" |
| 399 | + }, |
| 400 | + "raw_details": { |
| 401 | + "description": "Additional details for the annotation, displayed alongside the message", |
| 402 | + "type": "string" |
| 403 | + } |
| 404 | + }, |
| 405 | + "required": [ |
| 406 | + "path", |
| 407 | + "start_line", |
| 408 | + "end_line", |
| 409 | + "annotation_level", |
| 410 | + "message" |
| 411 | + ], |
| 412 | + "additionalProperties": false |
| 413 | + } |
| 414 | + } |
| 415 | + }, |
| 416 | + "additionalProperties": false |
| 417 | + } |
| 418 | + }, |
| 419 | + "additionalProperties": false |
| 420 | + }, |
| 421 | + "if": { |
| 422 | + "$ref": "#/definitions/if" |
336 | 423 | } |
337 | 424 | }, |
338 | 425 | "additionalProperties": false |
|
0 commit comments