From 4f130072679ec0249af3c8b6a9f5c2b4821fdc9d Mon Sep 17 00:00:00 2001 From: mrT23 Date: Mon, 3 Jun 2024 08:15:36 +0300 Subject: [PATCH] Disable final update message when auto_describe is enabled in GitHub Action Runner --- docs/docs/usage-guide/automations_and_usage.md | 1 - pr_agent/servers/github_action_runner.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/usage-guide/automations_and_usage.md b/docs/docs/usage-guide/automations_and_usage.md index aa969755..35c95099 100644 --- a/docs/docs/usage-guide/automations_and_usage.md +++ b/docs/docs/usage-guide/automations_and_usage.md @@ -118,7 +118,6 @@ Specifically, start by setting the following environment variables: github_action_config.auto_review: "true" # enable\disable auto review github_action_config.auto_describe: "true" # enable\disable auto describe github_action_config.auto_improve: "true" # enable\disable auto improve - github_action_config.enable_output: "true" # enable\disable github actions output parameter ``` `github_action_config.auto_review`, `github_action_config.auto_describe` and `github_action_config.auto_improve` are used to enable/disable automatic tools that run when a new PR is opened. If not set, the default configuration is for all three tools to run automatically when a new PR is opened. diff --git a/pr_agent/servers/github_action_runner.py b/pr_agent/servers/github_action_runner.py index 1aafcaae..8067187b 100644 --- a/pr_agent/servers/github_action_runner.py +++ b/pr_agent/servers/github_action_runner.py @@ -99,6 +99,7 @@ async def run_action(): # invoke by default all three tools if auto_describe is None or is_true(auto_describe): + get_settings().pr_description.final_update_message = False # No final update message when auto_describe is enabled await PRDescription(pr_url).run() if auto_review is None or is_true(auto_review): await PRReviewer(pr_url).run()