소스 검색

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.