Skip to content

Commit

Permalink
fix: added escaping of html elements in commit messages for changelog…
Browse files Browse the repository at this point in the history
… generation
  • Loading branch information
ErikBjare committed Feb 11, 2025
1 parent 5f833cf commit 6c26ebd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def msg_processed(self) -> str:
rf"[`\0`](https://github.com/{self.org}/{self.repo}/issues/\0)",
s,
)
# wrap html elements in backticks, if not already wrapped
s = re.sub(r"(?<!`)<([^>]+)>(?!`)", r"`<\1>`", s)
return s

def parse_type(self) -> Optional[Tuple[str, str]]:
Expand Down
2 changes: 2 additions & 0 deletions scripts/changelog_contributors.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Drarig29 [email protected]
Elijah-Bodden [email protected]
Furffico [email protected]
GabLeRoux [email protected]
Game4Move78 [email protected]
Julianoe [email protected]
LockBlock-dev [email protected]
LunarWatcher [email protected]
Expand Down Expand Up @@ -64,4 +65,5 @@ victorlin [email protected]
victorwinberg [email protected]
vieteh [email protected]
xylix [email protected]
yuhldr [email protected]
yumemio [email protected]

0 comments on commit 6c26ebd

Please sign in to comment.