Skip to content

Commit df2d467

Browse files
committed
Fix status event
1 parent a3aab25 commit df2d467

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: models/webhook/webhook.go

+6
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ func (w *Webhook) HasPackageEvent() bool {
299299
(w.ChooseEvents && w.HookEvents.Package)
300300
}
301301

302+
func (w *Webhook) HasStatusEvent() bool {
303+
return w.SendEverything ||
304+
(w.ChooseEvents && w.HookEvents.Status)
305+
}
306+
302307
// HasPullRequestReviewRequestEvent returns true if hook enabled pull request review request event.
303308
func (w *Webhook) HasPullRequestReviewRequestEvent() bool {
304309
return w.SendEverything ||
@@ -337,6 +342,7 @@ func (w *Webhook) EventCheckers() []struct {
337342
{w.HasReleaseEvent, webhook_module.HookEventRelease},
338343
{w.HasPackageEvent, webhook_module.HookEventPackage},
339344
{w.HasPullRequestReviewRequestEvent, webhook_module.HookEventPullRequestReviewRequest},
345+
{w.HasStatusEvent, webhook_module.HookEventStatus},
340346
}
341347
}
342348

0 commit comments

Comments
 (0)