From 5b0bb9c166a33635fbf8db8f099445056875eb7a Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Mon, 22 May 2023 03:43:44 +0200 Subject: [PATCH] announceybot formatting --- tools/announceybot/announceybot.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tools/announceybot/announceybot.py b/tools/announceybot/announceybot.py index 7677bfe..9ce247b 100644 --- a/tools/announceybot/announceybot.py +++ b/tools/announceybot/announceybot.py @@ -25,7 +25,7 @@ def get_tag_annotation(tagname): f"{TAG_NAME}", ], capture_output=True) text = ret.stdout.decode("utf-8") - return text.replace("'", "").replace('"', '\\"') + return text.replace("'", "") def get_replacement(): @@ -40,16 +40,14 @@ def get_replacement(): if __name__ == '__main__': annotation = get_tag_annotation(TAG_NAME) - zon_update = get_replacement().replace('"', '\\"') - message = f'''# TEST-RUN TEST-RUN TEST-RUN + zon_update = get_replacement() + message = f''' __**New release {TAG_NAME}!**__ -# New release {TAG_NAME}! - -## Updates +**Updates** {annotation} -## Using it +**Using it** Modify your `build.zig.zon` like this: