diff --git a/src/dhcpsrv/__init__.py b/src/dhcpsrv/__init__.py index 1121b0f..c250318 100644 --- a/src/dhcpsrv/__init__.py +++ b/src/dhcpsrv/__init__.py @@ -6,5 +6,5 @@ The single source of truth for the project version. Bump this before tagging a release; CI reads the tag, the code reads this constant. """ -__version__ = "1.2.1" -GITHUB_REPO = "Engelgardt23/dhcpsrv" +__version__ = "1.2.2" +GITHUB_REPO = "engel/dhcpsrv" # на Forgejo (git.engelgardt23.ru) diff --git a/src/dhcpsrv/app.py b/src/dhcpsrv/app.py index 68018d1..08a8755 100644 --- a/src/dhcpsrv/app.py +++ b/src/dhcpsrv/app.py @@ -53,7 +53,7 @@ def main() -> None: title = f"[bold cyan]dhcpsrv v{__version__}[/] {t('tagline')}" latest = check_for_update() if latest: - release_url = f"https://github.com/{GITHUB_REPO}/releases/latest" + release_url = f"https://git.engelgardt23.ru/{GITHUB_REPO}/releases/latest" notice = t("update_available", tag=latest) header = Table.grid(expand=True) header.add_column(justify="left", ratio=1) diff --git a/src/dhcpsrv/update_check.py b/src/dhcpsrv/update_check.py index 280ae39..995ac12 100644 --- a/src/dhcpsrv/update_check.py +++ b/src/dhcpsrv/update_check.py @@ -29,9 +29,8 @@ def check_for_update() -> str | None: currently running version. Returns None when up to date, offline, or on any error — the caller decides how (or whether) to render the hint.""" try: - url = f"https://api.github.com/repos/{GITHUB_REPO}/releases/latest" + url = f"https://git.engelgardt23.ru/api/v1/repos/{GITHUB_REPO}/releases/latest" req = urllib.request.Request(url, headers={ - "Accept": "application/vnd.github+json", "User-Agent": f"dhcpsrv/{__version__}", }) with urllib.request.urlopen(req, timeout=3) as r: