From 5447f4436f920dfed23baab0a23bb2c9ceaa1e04 Mon Sep 17 00:00:00 2001 From: Andreas Engl Date: Tue, 5 Mar 2024 14:36:38 +0100 Subject: [PATCH] add ghe support --- neo/neo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neo/neo.py b/neo/neo.py index f6828a8..04f448c 100755 --- a/neo/neo.py +++ b/neo/neo.py @@ -123,8 +123,9 @@ def main( if per_page: session.params = {"per_page": per_page} + github_api_url = os.environ['GITHUB_API_URL'] compare_url = ( - f"https://api.github.com/repos/{github_repository}" + f"{github_api_url}/repos/{github_repository}" f"/compare/{quote_plus(github_base_ref)}...{quote_plus(github_head_ref)}" ) logging.info(f"GitHub API request: {compare_url}")