diff --git a/docs/docs/tools/improve.md b/docs/docs/tools/improve.md index 2777a6d5..3d4b0336 100644 --- a/docs/docs/tools/improve.md +++ b/docs/docs/tools/improve.md @@ -435,7 +435,7 @@ To enable auto-approval based on specific criteria, first, you need to enable th enable_auto_approval = true ``` -There are two criteria that can be set for auto-approval: +There are several criteria that can be set for auto-approval: - **Review effort score** @@ -459,6 +459,18 @@ auto_approve_for_no_suggestions = true When no [code suggestion](https://www.qodo.ai/images/pr_agent/code_suggestions_as_comment_closed.png) were found for the PR, the PR will be auto-approved. +___ + +- **Ticket Compliance** + +```toml +[config] +enable_auto_approval = true +ensure_ticket_compliance = true # Default is false +``` + +If `ensure_ticket_compliance` is set to `true`, auto-approval will be disabled if a ticket is linked to the PR and the ticket is not compliant (e.g., the `review` tool did not mark the PR as fully compliant with the ticket). This ensures that PRs are only auto-approved if their associated tickets are properly resolved. + ### How many code suggestions are generated? Qodo Merge uses a dynamic strategy to generate code suggestions based on the size of the pull request (PR). Here's how it works: diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index c6437931..7d8e1e82 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -64,6 +64,7 @@ reasoning_effort = "medium" # "low", "medium", "high" enable_auto_approval=false # Set to true to enable auto-approval of PRs under certain conditions auto_approve_for_low_review_effort=-1 # -1 to disable, [1-5] to set the threshold for auto-approval auto_approve_for_no_suggestions=false # If true, the PR will be auto-approved if there are no suggestions +ensure_ticket_compliance=false # Set to true to disable auto-approval of PRs if the ticket is not compliant # extended thinking for Claude reasoning models enable_claude_extended_thinking = false # Set to true to enable extended thinking feature extended_thinking_budget_tokens = 2048