14 lines
423 B
Python
14 lines
423 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from services.gitlab_client import GitLabTask
|
||
|
|
|
||
|
|
|
||
|
|
def format_professional_description(task: GitLabTask) -> str:
|
||
|
|
if task.source == "board_bug":
|
||
|
|
lead = "Investigated and resolved defect"
|
||
|
|
elif task.source == "milestone":
|
||
|
|
lead = "Delivered milestone work item"
|
||
|
|
else:
|
||
|
|
lead = "Completed engineering task"
|
||
|
|
|
||
|
|
return f"{lead} ({task.reference}): {task.title}"
|