mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-11 04:05:10 +02:00
Revert "Fix schedule tasks bugs (#28691)"
This reverts commit97292da960
. (cherry picked from commit83e5eba031
) (cherry picked from commitf6ef8f3819
) Conflicts: services/repository/setting.go
This commit is contained in:
parent
0fd9d08ea0
commit
fe8622dae3
19 changed files with 90 additions and 206 deletions
|
@ -22,7 +22,6 @@ const (
|
|||
GithubEventRelease = "release"
|
||||
GithubEventPullRequestComment = "pull_request_comment"
|
||||
GithubEventGollum = "gollum"
|
||||
GithubEventSchedule = "schedule"
|
||||
)
|
||||
|
||||
// canGithubEventMatch check if the input Github event can match any Gitea event.
|
||||
|
@ -70,9 +69,6 @@ func canGithubEventMatch(eventName string, triggedEvent webhook_module.HookEvent
|
|||
return false
|
||||
}
|
||||
|
||||
case GithubEventSchedule:
|
||||
return triggedEvent == webhook_module.HookEventSchedule
|
||||
|
||||
default:
|
||||
return eventName == string(triggedEvent)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue