File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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.
303308func (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
You can’t perform that action at this time.
0 commit comments