mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-17 19:10:38 +08:00
multi line
This commit is contained in:
@ -343,8 +343,8 @@ def set_custom_labels(variables):
|
|||||||
#variables["custom_labels_examples"] = f" - {list(labels.keys())[0]}"
|
#variables["custom_labels_examples"] = f" - {list(labels.keys())[0]}"
|
||||||
variables["custom_labels_class"] = "class Label(Enum):"
|
variables["custom_labels_class"] = "class Label(Enum):"
|
||||||
for k, v in labels.items():
|
for k, v in labels.items():
|
||||||
variables["custom_labels_class"] += f"\n {k.lower().replace(' ','_')} = '{k}' # {v['description']}"
|
description = v['description'].strip('\n').replace('\n', '\\n')
|
||||||
|
variables["custom_labels_class"] += f"\n {k.lower().replace(' ', '_')} = '{k}' # {description}"
|
||||||
|
|
||||||
def get_user_labels(current_labels: List[str] = None):
|
def get_user_labels(current_labels: List[str] = None):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user