Class: RightHook::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- RightHook::App
- 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
Instance Method Summary collapse
-
#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.
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.
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 |