fix(integrations): Fix GHE repo url
diff --git a/src/sentry/integrations/github_enterprise/repository.py b/src/sentry/integrations/github_enterprise/repository.py
index ecf0f5e99d1a4..8bf48aff238b1 100644
--- a/src/sentry/integrations/github_enterprise/repository.py
+++ b/src/sentry/integrations/github_enterprise/repository.py
@@ -18,7 +18,7 @@ def create_repository(self, organization, data):
         integration = Integration.objects.get(
             id=data['integration_id'], provider=self.repo_provider)
 
-        base_url = integration.metadata.get('domain_name')
+        base_url = integration.metadata['domain_name'].split('/')[0]
         return {
             'name': data['identifier'],
             'external_id': data['external_id'],
