maintainers: unify issue references

So far, we had both `fj#` and `lix#` issue references in our release
notes, due to supporting both in the md files.
This commit unifies those in order for all references to be consistent.

Change-Id: I67c75784b460bfe4ebf214c2f6ac105cc60a7bad
This commit is contained in:
rootile
2026-03-09 22:16:50 +00:00
committed by Rutile
parent 861e5a7471
commit e00ee5954e
+5 -6
View File
@@ -73,17 +73,16 @@ def format_link(ident: str, gh_part: str, fj_part: str) -> str:
if ident.isdigit():
ident = f"lix#{ident}"
if ident.startswith("gh#"):
num, link, base = int(ident[3:]), ident, f"{GH_REPO_BASE}/{gh_part}"
elif ident.startswith("nix#"):
# Unify the strings, in order for them to be consistent throughout the release notes.
ident = ident.replace("gh#", "nix#").replace("fj#", "lix#")
if ident.startswith("nix#"):
num, link, base = int(ident[4:]), ident, f"{GH_REPO_BASE}/{gh_part}"
elif ident.startswith("fj#"):
num, link, base = int(ident[3:]), ident, f"{FORGEJO_REPO_BASE}/{fj_part}"
elif ident.startswith("lix#"):
num, link, base = int(ident[4:]), ident, f"{FORGEJO_REPO_BASE}/{fj_part}"
else:
msg = f"unrecognized reference format: {ident}"
raise Exception(msg)
raise ValueError(msg)
return f"[{link}]({base}/{num})"