1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

announceybot formatting

This commit is contained in:
Rene Schallner 2023-05-22 03:43:44 +02:00
parent cbd1c98f47
commit 5b0bb9c166

View file

@ -25,7 +25,7 @@ def get_tag_annotation(tagname):
f"{TAG_NAME}", f"{TAG_NAME}",
], capture_output=True) ], capture_output=True)
text = ret.stdout.decode("utf-8") text = ret.stdout.decode("utf-8")
return text.replace("'", "").replace('"', '\\"') return text.replace("'", "")
def get_replacement(): def get_replacement():
@ -40,16 +40,14 @@ def get_replacement():
if __name__ == '__main__': if __name__ == '__main__':
annotation = get_tag_annotation(TAG_NAME) annotation = get_tag_annotation(TAG_NAME)
zon_update = get_replacement().replace('"', '\\"') zon_update = get_replacement()
message = f'''# TEST-RUN TEST-RUN TEST-RUN message = f''' __**New release {TAG_NAME}!**__
# New release {TAG_NAME}! **Updates**
## Updates
{annotation} {annotation}
## Using it **Using it**
Modify your `build.zig.zon` like this: Modify your `build.zig.zon` like this: