diff --git a/docs/docs/usage-guide/automations_and_usage.md b/docs/docs/usage-guide/automations_and_usage.md index 14992611..07506dbd 100644 --- a/docs/docs/usage-guide/automations_and_usage.md +++ b/docs/docs/usage-guide/automations_and_usage.md @@ -62,7 +62,7 @@ The configuration parameter `pr_commands` defines the list of tools that will be ``` [github_app] pr_commands = [ - "/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true --pr_description.final_update_message=false", + "/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true --pr_description.disable_final_update_message=true", "/review --pr_reviewer.num_code_suggestions=0", "/improve", ] @@ -103,7 +103,7 @@ The configuration parameter `push_commands` defines the list of tools that will handle_push_trigger = true push_commands = [ "/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true", - "/review --pr_reviewer.num_code_suggestions=0 --pr_reviewer.final_update_message=false", + "/review --pr_reviewer.num_code_suggestions=0 --pr_reviewer.disable_final_update_message=true", ] ``` This means that when new code is pushed to the PR, the PR-Agent will run the `describe` and `review` tools, with the specified parameters. diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index 3319bbc4..ce37e2db 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -36,7 +36,7 @@ ask_and_reflect=false #automatic_review=true persistent_comment=true extra_instructions = "" -final_update_message = true +disable_final_update_message = false # review labels enable_review_labels_security=true enable_review_labels_effort=true diff --git a/pr_agent/tools/pr_reviewer.py b/pr_agent/tools/pr_reviewer.py index 33149cad..fbbc04b2 100644 --- a/pr_agent/tools/pr_reviewer.py +++ b/pr_agent/tools/pr_reviewer.py @@ -135,7 +135,7 @@ class PRReviewer: if get_settings().config.publish_output: # publish the review if get_settings().pr_reviewer.persistent_comment and not self.incremental.is_incremental: - final_update_message = get_settings().pr_reviewer.final_update_message + final_update_message = not get_settings().pr_reviewer.disable_final_update_message self.git_provider.publish_persistent_comment(pr_review, initial_header="## PR Review", update_header=True,