MCPcopy Create free account
hub / github.com/Unpackerr/unpackerr / Excluded

Method Excluded

pkg/unpackerr/webhook.go:320–328  ·  view source on GitHub ↗

Excluded returns true if an app is in the Exclude slice.

(app starr.App)

Source from the content-addressed store, hash-verified

318
319// Excluded returns true if an app is in the Exclude slice.
320func (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.

Callers 1

runAllHooksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected