eight-hourr/backend/services/description_formatter.py

14 lines
423 B
Python
Raw Normal View History

2026-07-17 06:55:36 +00:00
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}"