暂时移除gitea支持,等待官方适配。伟大的决策!
This commit is contained in:
parent
acdb9a3c4a
commit
c10a9ab009
@ -40,8 +40,9 @@ class WebHookView(View):
|
|||||||
"""
|
"""
|
||||||
if git_type == "gitlab":
|
if git_type == "gitlab":
|
||||||
return GitLabProvider()
|
return GitLabProvider()
|
||||||
elif git_type == "gitea":
|
# TODO: 暂时官方没适配gitea
|
||||||
return GiteaProvider()
|
# elif git_type == "gitea":
|
||||||
|
# return GiteaProvider()
|
||||||
else:
|
else:
|
||||||
return GitLabProvider()
|
return GitLabProvider()
|
||||||
|
|
||||||
@ -93,10 +94,11 @@ class WebHookView(View):
|
|||||||
provider.save_pr_agent_log(
|
provider.save_pr_agent_log(
|
||||||
request_data=json_data, project_id=project_config.get("project_id")
|
request_data=json_data, project_id=project_config.get("project_id")
|
||||||
)
|
)
|
||||||
elif GIT_TYPE == "gitea":
|
# TODO:暂时官方没适配gitea
|
||||||
if json_data.get("action") == "opened":
|
# elif GIT_TYPE == "gitea":
|
||||||
provider.save_pr_agent_log(
|
# if json_data.get("action") == "opened":
|
||||||
request_data=json_data, project_id=project_config.get("project_id")
|
# provider.save_pr_agent_log(
|
||||||
)
|
# request_data=json_data, project_id=project_config.get("project_id")
|
||||||
|
# )
|
||||||
|
|
||||||
return JsonResponse(status=200, data={"status": "ignored"})
|
return JsonResponse(status=200, data={"status": "ignored"})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user