Class: RightHook::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/right_hook/app.rb

Overview

Inherit from this class and implement the on_issue, on_pull_request, etc. methods to configure how you respond to GitHub hooks.

Direct Known Subclasses

DebugApp

Instance Method Summary collapse

Instance Method Details

#secret(owner, repo_name, event_type) ⇒ Object

It is up to you to override secret to determine how to look up the correct secret for an owner/repo combo.

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/right_hook/app.rb', line 39

def secret(owner, repo_name, event_type)
  raise NotImplementedError, "You didn't specify how to find the secret for a repo!"
end