Skip to content

Commit

Permalink
Enhance GitHubClient initialization: optimize API call efficiency and…
Browse files Browse the repository at this point in the history
… support custom GitHub Enterprise domains by disabling hostname verification
  • Loading branch information
Your Name committed May 12, 2025
1 parent 228e86b commit 0cbffd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template_automation/github_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})")
Expand Down

0 comments on commit 0cbffd6

Please sign in to comment.