mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
add configuration enable_pr_type
This commit is contained in:
parent
1d2aedf169
commit
e96b03da57
2 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue