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:
@@ -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})"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user