mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Minor discord cl fix (#23833)
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.
(cherry picked from commit 18696d5c1b)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user