.
This commit is contained in:
parent
3be9f56278
commit
f439f3d3de
@ -91,9 +91,11 @@ class WebHookView(View):
|
|||||||
# 记录请求日志: 目前仅记录合并日志
|
# 记录请求日志: 目前仅记录合并日志
|
||||||
if GIT_TYPE == "gitlab":
|
if GIT_TYPE == "gitlab":
|
||||||
if json_data.get('object_kind') == 'merge_request':
|
if json_data.get('object_kind') == 'merge_request':
|
||||||
provider.save_pr_agent_log(
|
labels = json_data["labels"]
|
||||||
request_data=json_data, project_id=project_config.get("project_id")
|
if labels and labels[0].get("title"):
|
||||||
)
|
provider.save_pr_agent_log(
|
||||||
|
request_data=json_data, project_id=project_config.get("project_id")
|
||||||
|
)
|
||||||
# TODO:暂时官方没适配gitea
|
# TODO:暂时官方没适配gitea
|
||||||
# elif GIT_TYPE == "gitea":
|
# elif GIT_TYPE == "gitea":
|
||||||
# if json_data.get("action") == "opened":
|
# if json_data.get("action") == "opened":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user