From f04ef6dddb344200dc1980a54692a8f0cfabe402 Mon Sep 17 00:00:00 2001 From: Andrew Herrington Date: Sun, 21 May 2023 12:57:06 -0500 Subject: [PATCH] chore: add debug outputs for github urls --- repo_manager/utils/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repo_manager/utils/__init__.py b/repo_manager/utils/__init__.py index 0683df9d..601a044c 100644 --- a/repo_manager/utils/__init__.py +++ b/repo_manager/utils/__init__.py @@ -79,11 +79,14 @@ def validate_inputs(parsed_inputs: dict[str, Any]) -> dict[str, Any]: + "GITHUB_SERVER_URL env var is not set. Please set " + "INPUT_GITHUB_SERVER_URL or GITHUB_SERVER_URL in the env" ) + actions_toolkit.debug(f"github_server_url: {parsed_inputs['github_server_url']}") if parsed_inputs["github_server_url"] == "https://github.com": api_url = "https://api.github.com" else: api_url = parsed_inputs["github_server_url"] + "/api/v3" + actions_toolkit.debug(f"api_url: {api_url}") + try: repo = get_github_client(parsed_inputs["token"], api_url=api_url).get_repo(parsed_inputs["repo"]) except Exception as exc: # this should be tighter