Jelajahi Sumber

Refactor release notes and rendering script for improved formatting; enhance branch and commit display

TheWildJames 3 bulan lalu
induk
melakukan
142b57e576

+ 0 - 5
.github/config/RELEASE_NOTES.md

@@ -12,11 +12,6 @@ Manager: {{KSU_MANAGER}}
 > [!IMPORTANT]
 > For best compatiblity ensure your Manager Version and Kernel Version match eg. 30100 = 30100.
 
-| Version: | {{KSU_VERSION}} |
-| Tag:     | {{KSU_GIT_TAG}} |
-| Branch:  | {{KSUN_BRANCH}} |
-| Commit:  | {{KSUN_COMMIT}} |
-
 <details>
 <summary>**Build Information**</summary>
 

+ 3 - 4
.github/scripts/render_release_body.py

@@ -24,7 +24,7 @@ def render_markdown(template_path: Path):
 
     susfs_branches = []
     for branch, commit in commits.get("susfs", {}).items():
-        susfs_branches.append(f"| {branch} | {commit} |")
+        susfs_branches.append(f"**{branch}**\n`{commit}`")
 
     if "{{SUSFS_BRANCHS}}" in text:
         text = text.replace("{{SUSFS_BRANCHS}}", "\n".join(susfs_branches))
@@ -101,10 +101,9 @@ for key in data.keys():
 
     if key == "susfs" and "susfs" in commits:
         emit("- Branches:")
-        emit("| Branch | Commit |")
-        emit("| :--- | :---: |")
         for branch, commit in commits["susfs"].items():
-            emit(f"| {branch} | {commit} |")
+            emit(f"**{branch}**")
+            emit(f"`{commit}`")
 
     if section.get("items"):
         emit_list(section["items"])