mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 11:25:18 +00:00
multi line
This commit is contained in:
parent
e9891fc530
commit
0e932af2e3
2 changed files with 4 additions and 4 deletions
|
|
@ -343,8 +343,8 @@ def set_custom_labels(variables):
|
|||
#variables["custom_labels_examples"] = f" - {list(labels.keys())[0]}"
|
||||
variables["custom_labels_class"] = "class Label(Enum):"
|
||||
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):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ labels:
|
|||
description: |-
|
||||
...
|
||||
main_files_walkthrough:
|
||||
- ...
|
||||
- ...
|
||||
- ...
|
||||
- ...
|
||||
```
|
||||
|
||||
Answer should be a valid YAML, and nothing else. Each YAML output MUST be after a newline, with proper indent, and block scalar indicator ('|-')
|
||||
|
|
|
|||
Loading…
Reference in a new issue