|
374 | 374 | "additionalProperties": false,
|
375 | 375 | "default": {}
|
376 | 376 | },
|
| 377 | + "pre_merge_checks": { |
| 378 | + "type": "object", |
| 379 | + "properties": { |
| 380 | + "docstrings": { |
| 381 | + "type": "object", |
| 382 | + "properties": { |
| 383 | + "mode": { |
| 384 | + "type": "string", |
| 385 | + "enum": ["off", "warning", "error"], |
| 386 | + "default": "warning", |
| 387 | + "description": "Mode | Level of enforcement for docstring coverage check. Warning only generates a warning and does not require the user to resolve the check. While error requires the user to resolve issues before merging pull request." |
| 388 | + }, |
| 389 | + "threshold": { |
| 390 | + "type": "number", |
| 391 | + "minimum": 0, |
| 392 | + "maximum": 100, |
| 393 | + "default": 80, |
| 394 | + "description": "Percentage threshold for docstring coverage check." |
| 395 | + } |
| 396 | + }, |
| 397 | + "additionalProperties": false, |
| 398 | + "default": {}, |
| 399 | + "description": "Docstring Coverage | Checks if the code has sufficient docstrings." |
| 400 | + }, |
| 401 | + "title": { |
| 402 | + "type": "object", |
| 403 | + "properties": { |
| 404 | + "mode": { |
| 405 | + "type": "string", |
| 406 | + "enum": ["off", "warning", "error"], |
| 407 | + "default": "warning", |
| 408 | + "description": "Mode | Level of enforcement for pull request title check. Warning only generates a warning and does not require the user to resolve the check. While error requires the user to resolve issues before merging pull request." |
| 409 | + }, |
| 410 | + "requirements": { |
| 411 | + "type": "string", |
| 412 | + "default": "", |
| 413 | + "description": "Requirements | Requirements for the pull request title. Example: 'Title should be concise and descriptive, ideally under 50 characters.'" |
| 414 | + } |
| 415 | + }, |
| 416 | + "additionalProperties": false, |
| 417 | + "default": {}, |
| 418 | + "description": "Title Check | Checks if the pull request title is appropriate and follows best practices." |
| 419 | + }, |
| 420 | + "description": { |
| 421 | + "type": "object", |
| 422 | + "properties": { |
| 423 | + "mode": { |
| 424 | + "type": "string", |
| 425 | + "enum": ["off", "warning", "error"], |
| 426 | + "default": "warning", |
| 427 | + "description": "Mode | Level of enforcement for pull request description check. Warning only generates a warning and does not require the user to resolve the check. While error requires the user to resolve issues before merging pull request." |
| 428 | + } |
| 429 | + }, |
| 430 | + "additionalProperties": false, |
| 431 | + "default": {}, |
| 432 | + "description": "Description Check | Checks if the pull request description is appropriate and follows best practices." |
| 433 | + }, |
| 434 | + "issue_assessment": { |
| 435 | + "type": "object", |
| 436 | + "properties": { |
| 437 | + "mode": { |
| 438 | + "type": "string", |
| 439 | + "enum": ["off", "warning", "error"], |
| 440 | + "default": "warning", |
| 441 | + "description": "Mode | Level of enforcement for linked issue assessment. Warning only generates a warning and does not require the user to resolve the check. While error requires the user to resolve issues before merging pull request." |
| 442 | + } |
| 443 | + }, |
| 444 | + "additionalProperties": false, |
| 445 | + "default": {}, |
| 446 | + "description": "Linked Issue Assessment | Checks if the pull request addresses the linked issues. Generate an assessment of how well the changes address the linked issues." |
| 447 | + } |
| 448 | + }, |
| 449 | + "additionalProperties": false, |
| 450 | + "default": {} |
| 451 | + }, |
377 | 452 | "tools": {
|
378 | 453 | "type": "object",
|
379 | 454 | "properties": {
|
|
988 | 1063 | "additionalProperties": false,
|
989 | 1064 | "description": "Tools that provide additional context to code reviews.",
|
990 | 1065 | "default": {}
|
991 |
| - }, |
992 |
| - "pre_merge_checks": { |
993 |
| - "type": "object", |
994 |
| - "additionalProperties": {}, |
995 |
| - "default": {} |
996 | 1066 | }
|
997 | 1067 | },
|
998 | 1068 | "additionalProperties": false,
|
|
0 commit comments