Module: WebHooks

Defined in:
app/validators/web_hooks/wildcard_branch_filter_validator.rb,
app/helpers/web_hooks/web_hooks_helper.rb,
app/services/web_hooks/destroy_service.rb,
app/workers/web_hooks/log_destroy_worker.rb,
app/services/web_hooks/log_destroy_service.rb,
app/workers/web_hooks/log_execution_worker.rb,
app/models/concerns/web_hooks/has_web_hooks.rb,
app/models/concerns/web_hooks/auto_disabling.rb,
app/services/web_hooks/admin_destroy_service.rb,
app/services/web_hooks/log_execution_service.rb,
app/controllers/concerns/web_hooks/hook_actions.rb,
app/controllers/concerns/web_hooks/hook_log_actions.rb,
app/controllers/concerns/web_hooks/hook_execution_notice.rb

Overview

WildcardBranchFilterValidator

Custom validator for wildcard branch filter. Squishes whitespace and ignores empty string. This only checks that a string is a valid wildcard git branch like “feature/login” and “feature/*”. It doesn’t check whether a branch already exists.

Example:

class Webhook < ActiveRecord::Base
  validates :push_events_branch_filter, "web_hooks/wildcard_branch_filter": true
end

Defined Under Namespace

Modules: AutoDisabling, HasWebHooks, HookActions, HookExecutionNotice, HookLogActions, WebHooksHelper Classes: AdminDestroyService, DestroyService, LogDestroyService, LogDestroyWorker, LogExecutionService, LogExecutionWorker, WildcardBranchFilterValidator