From e00ee5954e8c442f9e40ea7ece72b67b3e1e01df Mon Sep 17 00:00:00 2001 From: rootile Date: Mon, 9 Mar 2026 18:45:28 +0100 Subject: [PATCH] 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 --- maintainers/build-release-notes.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/maintainers/build-release-notes.py b/maintainers/build-release-notes.py index 4d98d115f..cc72c60b8 100755 --- a/maintainers/build-release-notes.py +++ b/maintainers/build-release-notes.py @@ -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})"