From e96b03da576502e877a5f08d87489db2471fbaae Mon Sep 17 00:00:00 2001 From: "Hussam.lawen" Date: Mon, 6 Nov 2023 11:58:26 +0200 Subject: [PATCH] add configuration enable_pr_type --- pr_agent/settings/configuration.toml | 1 + pr_agent/tools/pr_description.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index ffe6d39d..14db286d 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -34,6 +34,7 @@ add_original_user_description=false keep_original_user_title=false use_bullet_points=true extra_instructions = "" +enable_pr_type=true # markers use_description_markers=false diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index 67e6b2a7..a8b23770 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -230,6 +230,8 @@ class PRDescription: # Don't display 'PR Labels' if 'PR Labels' in self.data: self.data.pop('PR Labels') + if not get_settings().pr_description.enable_pr_type: + self.data.pop('PR Type') for key, value in self.data.items(): markdown_text += f"## {key}\n\n" markdown_text += f"{value}\n\n"