]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Minor discord cl fix (#23833)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 10 Jan 2024 01:53:49 +0000 (12:53 +1100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 01:53:49 +0000 (12:53 +1100)
This means it won't send a dummy post if no changelog entries are found. The old one just sent it and didn't check if it worked.

Tools/actions_changelogs_since_last_run.py

index fde96f992c43592b76b48091612b366d8d660590..10f76f7ff72b9d921df51f42dadd3d9cc530c65d 100755 (executable)
@@ -125,6 +125,10 @@ def send_to_discord(entries: Iterable[ChangelogEntry]) -> None:
                 else:
                     content.write(f"{emoji} - {message}\n")
     
+    if count == 0:
+        print("Skipping discord push as no changelog entries found")
+        return
+
     print(f"Posting {count} changelog entries to discord webhook")
 
     body = {