diff --git a/apps/pr/views.py b/apps/pr/views.py index 8adfec8..23a6509 100644 --- a/apps/pr/views.py +++ b/apps/pr/views.py @@ -40,8 +40,9 @@ class WebHookView(View): """ if git_type == "gitlab": return GitLabProvider() - elif git_type == "gitea": - return GiteaProvider() + # TODO: 暂时官方没适配gitea + # elif git_type == "gitea": + # return GiteaProvider() else: return GitLabProvider() @@ -93,10 +94,11 @@ class WebHookView(View): provider.save_pr_agent_log( request_data=json_data, project_id=project_config.get("project_id") ) - elif GIT_TYPE == "gitea": - if json_data.get("action") == "opened": - provider.save_pr_agent_log( - request_data=json_data, project_id=project_config.get("project_id") - ) + # TODO:暂时官方没适配gitea + # elif GIT_TYPE == "gitea": + # if json_data.get("action") == "opened": + # provider.save_pr_agent_log( + # request_data=json_data, project_id=project_config.get("project_id") + # ) return JsonResponse(status=200, data={"status": "ignored"})