Skip to content

Commit

Permalink
Fixes changelog script (#2435)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

See title

## Why It's Good For The Game

seeing changelogs is good

## Changelog

:cl:
fix: Changelog generation
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
MarkSuckerberg authored Oct 28, 2023
1 parent 890e1c5 commit 9c5624b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/changelog/generate_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 9c5624b

Please sign in to comment.