Add cron feature (#934)

https://woodpecker-ci.org/docs/usage/cron

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
6543
2022-09-01 00:36:32 +02:00
committed by GitHub
parent 65587e3e30
commit 383f273392
63 changed files with 1604 additions and 123 deletions

View File

@@ -21,11 +21,12 @@ const (
EventPull WebhookEvent = "pull_request"
EventTag WebhookEvent = "tag"
EventDeploy WebhookEvent = "deployment"
EventCron WebhookEvent = "cron"
)
func ValidateWebhookEvent(s WebhookEvent) bool {
switch s {
case EventPush, EventPull, EventTag, EventDeploy:
case EventPush, EventPull, EventTag, EventDeploy, EventCron:
return true
default:
return false