HasIssueCommentEvent returns true if hook enabled issue comment event.
()
| 195 | |
| 196 | // HasIssueCommentEvent returns true if hook enabled issue comment event. |
| 197 | func (w *Webhook) HasIssueCommentEvent() bool { |
| 198 | return w.SendEverything || |
| 199 | (w.ChooseEvents && w.IssueComment) |
| 200 | } |
| 201 | |
| 202 | // HasReleaseEvent returns true if hook enabled release event. |
| 203 | func (w *Webhook) HasReleaseEvent() bool { |