HasForkEvent returns true if hook enabled fork event.
()
| 171 | |
| 172 | // HasForkEvent returns true if hook enabled fork event. |
| 173 | func (w *Webhook) HasForkEvent() bool { |
| 174 | return w.SendEverything || |
| 175 | (w.ChooseEvents && w.Fork) |
| 176 | } |
| 177 | |
| 178 | // HasPushEvent returns true if hook enabled push event. |
| 179 | func (w *Webhook) HasPushEvent() bool { |