File tree 1 file changed +6
-0
lines changed
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 {
299
299
(w .ChooseEvents && w .HookEvents .Package )
300
300
}
301
301
302
+ func (w * Webhook ) HasStatusEvent () bool {
303
+ return w .SendEverything ||
304
+ (w .ChooseEvents && w .HookEvents .Status )
305
+ }
306
+
302
307
// HasPullRequestReviewRequestEvent returns true if hook enabled pull request review request event.
303
308
func (w * Webhook ) HasPullRequestReviewRequestEvent () bool {
304
309
return w .SendEverything ||
@@ -337,6 +342,7 @@ func (w *Webhook) EventCheckers() []struct {
337
342
{w .HasReleaseEvent , webhook_module .HookEventRelease },
338
343
{w .HasPackageEvent , webhook_module .HookEventPackage },
339
344
{w .HasPullRequestReviewRequestEvent , webhook_module .HookEventPullRequestReviewRequest },
345
+ {w .HasStatusEvent , webhook_module .HookEventStatus },
340
346
}
341
347
}
342
348
You can’t perform that action at this time.
0 commit comments