Skip to content

Commit

Permalink
fix(changelogs): Don't look for Fedora Version (#324)
Browse files Browse the repository at this point in the history
Since this was adapted from bazzite/bluefin, they looked for the string
".fc" for figuring out the fedora version.

Centos has EL. This changes it to that and has the prefix CS for the
title instead of F.
  • Loading branch information
m2Giles authored Feb 23, 2025
1 parent a2a4961 commit f02d856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/changelogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def generate_changelog(
linux: str = next(iter(manifests.values()))["Labels"][
"ostree.linux"
]
start=linux.find(".fc") + 3
start=linux.find(".el") + 3
fedora_version=linux[start:start+2]
except Exception as e:
print(f"Failed to get linux version:\n{e}")
Expand All @@ -371,7 +371,7 @@ def generate_changelog(
if not fedora_version + "." in curr_pretty:
curr_pretty=fedora_version + "." + curr_pretty
pretty = target.capitalize()
pretty += " (F" + curr_pretty
pretty += " (CS" + curr_pretty
if finish:
pretty += ", #" + finish[:7]
pretty += ")"
Expand Down

0 comments on commit f02d856

Please sign in to comment.