Skip to content

Commit 6c26ebd

Browse files
committed
fix: added escaping of html elements in commit messages for changelog generation
1 parent 5f833cf commit 6c26ebd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scripts/build_changelog.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def msg_processed(self) -> str:
123123
rf"[`\0`](https://github.com/{self.org}/{self.repo}/issues/\0)",
124124
s,
125125
)
126+
# wrap html elements in backticks, if not already wrapped
127+
s = re.sub(r"(?<!`)<([^>]+)>(?!`)", r"`<\1>`", s)
126128
return s
127129

128130
def parse_type(self) -> Optional[Tuple[str, str]]:

scripts/changelog_contributors.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Drarig29 [email protected]
88
Elijah-Bodden [email protected]
99
1010
11+
Game4Move78 [email protected]
1112
1213
LockBlock-dev [email protected]
1314
LunarWatcher [email protected]
@@ -64,4 +65,5 @@ victorlin [email protected]
6465
victorwinberg [email protected]
6566
6667
68+
6769

0 commit comments

Comments
 (0)