Skip to content

Commit

Permalink
Add fields and capitalize the keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Nov 15, 2024
1 parent 446b92c commit b36a09d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/scripts/python/changelog_markdown2lua.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ def markdown2lua(version: str, content: str) -> str:
)

# YAML content is read and available here, but not added to the output yet.
# yaml_data = yaml.safe_load(yaml_content) if yaml_content else None
yaml_data = yaml.safe_load(yaml_content) if yaml_content else {}

return LUA_FILE.format(
version=version,
description=lua_description,
Name = yaml_data.get('title', 'Unknown'),
Patch = yaml_data.get('patch', 'Unknown'),
Version=version,
Description=lua_description,
)


Expand Down

0 comments on commit b36a09d

Please sign in to comment.