From 7609760cfbd4a4610aad944802351e1c6daba9f2 Mon Sep 17 00:00:00 2001 From: Janik Besendorf Date: Wed, 25 Mar 2026 08:44:12 +0100 Subject: [PATCH] Pass branch parameter to GitHub commits API in update checker --- src/mvt/common/updates.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mvt/common/updates.py b/src/mvt/common/updates.py index c9c380b..6c77aba 100644 --- a/src/mvt/common/updates.py +++ b/src/mvt/common/updates.py @@ -180,10 +180,8 @@ class IndicatorsUpdates: def _get_remote_file_latest_commit( self, owner: str, repo: str, branch: str, path: str ) -> int: - # TODO: The branch is currently not taken into consideration. - # How do we specify which branch to look up to the API? file_commit_url = ( - f"https://api.github.com/repos/{owner}/{repo}/commits?path={path}" + f"https://api.github.com/repos/{owner}/{repo}/commits?path={path}&sha={branch}" ) try: res = requests.get(file_commit_url, timeout=5)