This PR adds support for migrating data from OpsGenie to Grafana IRM. Closes https://github.com/grafana/irm/issues/1179
11 lines
342 B
Python
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)
|