mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Update pr_description.py
This commit is contained in:
parent
86d901d5a6
commit
b980168e75
1 changed files with 4 additions and 7 deletions
|
|
@ -43,7 +43,6 @@ class PRDescription:
|
||||||
self.ai_handler = ai_handler()
|
self.ai_handler = ai_handler()
|
||||||
self.ai_handler.main_pr_language = self.main_pr_language
|
self.ai_handler.main_pr_language = self.main_pr_language
|
||||||
|
|
||||||
|
|
||||||
# Initialize the variables dictionary
|
# Initialize the variables dictionary
|
||||||
self.vars = {
|
self.vars = {
|
||||||
"title": self.git_provider.pr.title,
|
"title": self.git_provider.pr.title,
|
||||||
|
|
@ -221,9 +220,6 @@ class PRDescription:
|
||||||
if 'pr_files' in self.data:
|
if 'pr_files' in self.data:
|
||||||
self.data['pr_files'] = self.data.pop('pr_files')
|
self.data['pr_files'] = self.data.pop('pr_files')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _prepare_labels(self) -> List[str]:
|
def _prepare_labels(self) -> List[str]:
|
||||||
pr_types = []
|
pr_types = []
|
||||||
|
|
||||||
|
|
@ -512,6 +508,7 @@ def insert_br_after_x_chars(text, x=70):
|
||||||
is_inside_code = False
|
is_inside_code = False
|
||||||
return ''.join(new_text).strip()
|
return ''.join(new_text).strip()
|
||||||
|
|
||||||
|
|
||||||
def replace_code_tags(text):
|
def replace_code_tags(text):
|
||||||
"""
|
"""
|
||||||
Replace odd instances of ` with <code> and even instances of ` with </code>
|
Replace odd instances of ` with <code> and even instances of ` with </code>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue