Merge pull request #114 from devchat-ai/update_gitlab_repo_type

chore: Update gitlab host in config_util.py
This commit is contained in:
Tim 2024-05-20 13:36:08 +00:00 committed by GitHub
commit d6c0ce7b40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ def get_repo_type(url):
# 根据URL的特征判断仓库管理类型
if "github.com" in url:
return "github"
elif "gitlab.com" in url or "/gitlab/" in url:
elif "gitlab.com" in url or "gitlab" in url:
return "gitlab"
elif "bitbucket.org" in url:
return "bitbucket"