Excluded returns true if an app is in the Exclude slice.
(app starr.App)
| 318 | |
| 319 | // Excluded returns true if an app is in the Exclude slice. |
| 320 | func (w *WebhookConfig) Excluded(app starr.App) bool { |
| 321 | for _, exclude := range w.Exclude { |
| 322 | if strings.EqualFold(exclude, string(app)) { |
| 323 | return true |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | return false |
| 328 | } |
| 329 | |
| 330 | // HasEvent returns true if a status event is in the Events slice. |
| 331 | // Also returns true if the Events slice has only one value of WAITING. |