HasPullRequestEvent returns true if hook enabled pull request event.
()
| 189 | |
| 190 | // HasPullRequestEvent returns true if hook enabled pull request event. |
| 191 | func (w *Webhook) HasPullRequestEvent() bool { |
| 192 | return w.SendEverything || |
| 193 | (w.ChooseEvents && w.PullRequest) |
| 194 | } |
| 195 | |
| 196 | // HasIssueCommentEvent returns true if hook enabled issue comment event. |
| 197 | func (w *Webhook) HasIssueCommentEvent() bool { |