Sfoglia il codice sorgente

models/webhook: add skip check for Release event

Unknwon 7 anni fa
parent
commit
dee76e4189
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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() {
 			if !w.HasPullRequestEvent() {
 				continue
 				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.
 		// Use separate objects so modifcations won't be made on payload on non-Gogs type hooks.