oncall-engine/tools/migrators/lib/common/report.py
Joey Orlando e4728ea69f
feat: add opsgenie to migrator script (#5495)
This PR adds support for migrating data from OpsGenie to Grafana IRM.

Closes https://github.com/grafana/irm/issues/1179
2025-04-07 08:47:27 -04:00

11 lines
342 B
Python

TAB = " " * 4
SUCCESS_SIGN = ""
ERROR_SIGN = ""
WARNING_SIGN = "⚠️" # TODO: warning sign does not renders properly
def format_error_list(errors: list[str]) -> str:
"""Format a list of errors into a string with bullet points."""
if not errors:
return ""
return "\n".join(f"{TAB}- {error}" for error in errors)