暂时移除gitea支持,等待官方适配。伟大的决策!
This commit is contained in:
parent
acdb9a3c4a
commit
c10a9ab009
@ -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"})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user