mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 04:10:49 +08:00
move enable custom labels to custom labels function
This commit is contained in:
@ -37,7 +37,6 @@ extra_instructions = ""
|
||||
# markers
|
||||
use_description_markers=false
|
||||
include_generated_by_header=true
|
||||
enable_custom_labels=false
|
||||
|
||||
#custom_labels = ['Bug fix', 'Tests', 'Bug fix with tests', 'Refactoring', 'Enhancement', 'Documentation', 'Other']
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
enable_custom_labels=true
|
||||
|
||||
[custom_labels."Bug fix"]
|
||||
description = "Fixes a bug in the code"
|
||||
[custom_labels."Tests"]
|
||||
|
@ -43,7 +43,7 @@ class PRDescription:
|
||||
"use_bullet_points": get_settings().pr_description.use_bullet_points,
|
||||
"extra_instructions": get_settings().pr_description.extra_instructions,
|
||||
"commit_messages_str": self.git_provider.get_commit_messages(),
|
||||
"enable_custom_labels": get_settings().pr_description.enable_custom_labels,
|
||||
"enable_custom_labels": get_settings().enable_custom_labels,
|
||||
"custom_labels": "",
|
||||
"custom_labels_examples": "",
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ class PRGenerateLabels:
|
||||
"commit_messages_str": self.git_provider.get_commit_messages(),
|
||||
"custom_labels": "",
|
||||
"custom_labels_examples": "",
|
||||
"enable_custom_labels": get_settings().pr_description.enable_custom_labels,
|
||||
"enable_custom_labels": get_settings().enable_custom_labels,
|
||||
}
|
||||
|
||||
# Initialize the token handler
|
||||
|
@ -63,7 +63,8 @@ class PRReviewer:
|
||||
'answer_str': answer_str,
|
||||
"extra_instructions": get_settings().pr_reviewer.extra_instructions,
|
||||
"commit_messages_str": self.git_provider.get_commit_messages(),
|
||||
"custom_labels": ""
|
||||
"custom_labels": "",
|
||||
"enable_custom_labels": get_settings().enable_custom_labels,
|
||||
}
|
||||
|
||||
self.token_handler = TokenHandler(
|
||||
|
Reference in New Issue
Block a user