From 0cbffd6cf4f8c6bc003c798f79f36ea3c1dc3878 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 12 May 2025 17:23:52 -0400 Subject: [PATCH] Enhance GitHubClient initialization: optimize API call efficiency and support custom GitHub Enterprise domains by disabling hostname verification --- template_automation/github_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template_automation/github_client.py b/template_automation/github_client.py index 1f207ed..658788b 100644 --- a/template_automation/github_client.py +++ b/template_automation/github_client.py @@ -89,7 +89,10 @@ def __init__( self.client = Github( base_url=api_base_url, login_or_token=token, - verify=verify_ssl + verify=verify_ssl, + # Disable hostname verification to support custom GitHub Enterprise domains + per_page=100, # Optimize API call efficiency + verify_hostname=False # Allow custom GitHub Enterprise domains ) self.org = self.client.get_organization(org_name) logger.info(f"Initialized GitHub client for org: {org_name} (SSL verify: {verify_ssl})")