Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/analytics_server/mhq/utils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def run(self):


def get_custom_github_domain(org_id: str) -> Optional[str]:
DEFAULT_DOMAIN = "https://api.github.com"
core_repo_service = CoreRepoService()
integrations = core_repo_service.get_org_integrations_for_names(
org_id, [UserIdentityProvider.GITHUB.value]
Expand All @@ -70,6 +69,8 @@ def get_custom_github_domain(org_id: str) -> Optional[str]:
LOG.warn(
f"Custom domain not found for intergration for org {org_id} and provider {UserIdentityProvider.GITHUB.value}"
)
return DEFAULT_DOMAIN
# return nothing when custom domain is not found
# this is to prevent the default domain from being used
return

return github_domain