浏览代码

models/webhook: add skip check for Release event

Unknwon 7 年之前
父节点
当前提交
dee76e4189
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      models/webhook.go

+ 4 - 0
models/webhook.go

@@ -537,6 +537,10 @@ func prepareHookTasks(e Engine, repo *Repository, event HookEventType, p api.Pay
 			if !w.HasPullRequestEvent() {
 				continue
 			}
+		case HOOK_EVENT_RELEASE:
+			if !w.HasReleaseEvent() {
+				continue
+			}
 		}
 
 		// Use separate objects so modifcations won't be made on payload on non-Gogs type hooks.