HasPushEvent returns true if hook enabled push event.
()
| 177 | |
| 178 | // HasPushEvent returns true if hook enabled push event. |
| 179 | func (w *Webhook) HasPushEvent() bool { |
| 180 | return w.PushOnly || w.SendEverything || |
| 181 | (w.ChooseEvents && w.Push) |
| 182 | } |
| 183 | |
| 184 | // HasIssuesEvent returns true if hook enabled issues event. |
| 185 | func (w *Webhook) HasIssuesEvent() bool { |