1
0
Fork 0

Clean message issues

This commit is contained in:
Félix Piédallu 2024-02-16 00:20:52 +01:00
parent 1f301b6a62
commit 657119f338

View file

@ -566,18 +566,16 @@ def main() -> None:
result_message += f"\n{'=' * 80}\nApps already with an update PR:" result_message += f"\n{'=' * 80}\nApps already with an update PR:"
for app, info in apps_already.items(): for app, info in apps_already.items():
result_message += f"\n- {app}" result_message += f"\n- {app}"
if isinstance(info, tuple): result_message += f" ({info[0]} -> {info[1]})" if info[1] else " (app version did not change)"
result_message += f" ({info[0]} -> {info[1]})" if info[2]:
if info[2] is not None:
result_message += f" see {info[2]}" result_message += f" see {info[2]}"
if apps_updated: if apps_updated:
result_message += f"\n{'=' * 80}\nApps updated:" result_message += f"\n{'=' * 80}\nApps updated:"
for app, info in apps_updated.items(): for app, info in apps_updated.items():
result_message += f"\n- {app}" result_message += f"\n- {app}"
if isinstance(info, tuple): result_message += f" ({info[0]} -> {info[1]})" if info[1] else " (app version did not change)"
result_message += f" ({info[0]} -> {info[1]})" if info[2]:
if info[2] is not None:
result_message += f" see {info[2]}" result_message += f" see {info[2]}"
if apps_failed: if apps_failed: