|
137 | 137 | },
|
138 | 138 | "request_changes_workflow": {
|
139 | 139 | "type": "boolean",
|
140 |
| - "default": false, |
| 140 | + "default": true, |
141 | 141 | "description": "Approve the review once CodeRabbit's comments are resolved. Note: In GitLab, all discussions must be resolved."
|
142 | 142 | },
|
143 | 143 | "high_level_summary": {
|
|
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": {
|
|
0 commit comments