Improve workflow event triggers (#23613) (#23648)

This commit is contained in:
Giteabot 2023-03-23 04:34:05 -04:00 committed by GitHub
parent 622d21691c
commit e7a5429d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 155 additions and 13 deletions

View file

@ -83,7 +83,7 @@ func DetectWorkflows(commit *git.Commit, triggedEvent webhook_module.HookEventTy
}
func detectMatched(commit *git.Commit, triggedEvent webhook_module.HookEventType, payload api.Payloader, evt *jobparser.Event) bool {
if convertFromGithubEvent(evt) != string(triggedEvent) {
if !canGithubEventMatch(evt.Name, triggedEvent) {
return false
}