From 9c5624b869810bd0717f69749c8f617129b1d126 Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Sat, 28 Oct 2023 15:39:10 -0500 Subject: [PATCH] Fixes changelog script (#2435) ## About The Pull Request See title ## Why It's Good For The Game seeing changelogs is good ## Changelog :cl: fix: Changelog generation /:cl: --- tools/changelog/generate_cl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/changelog/generate_cl.py b/tools/changelog/generate_cl.py index 7259467f007d..d73d2034fe8a 100644 --- a/tools/changelog/generate_cl.py +++ b/tools/changelog/generate_cl.py @@ -27,7 +27,7 @@ from pathlib import Path from github import Github, InputGitAuthor -from ruamel import yaml +from ruamel import YAML CL_BODY = re.compile(r":cl:(.+)?\r\n((.|\n|\r)+?)\r\n\/:cl:", re.MULTILINE) CL_SPLIT = re.compile(r"(^\w+):\s+(\w.+)", re.MULTILINE) @@ -71,6 +71,8 @@ write_cl["delete-after"] = True +yaml = YAML(typ='safe', pure=True) + with open(Path.cwd().joinpath("tools/changelog/tags.yml")) as file: tags = yaml.safe_load(file)