module RightHook::Event

Constants

ISSUE
ISSUE_COMMENT
KNOWN_TYPES
PING
PULL_REQUEST

Public Class Methods

github_name(event_type) click to toggle source
# File lib/right_hook/event.rb, line 4
def github_name(event_type)
  case event_type
  when ISSUE
    'issues'
  when PULL_REQUEST
    'pull_request'
  when ISSUE_COMMENT
    'issue_comment'
  else
    raise ArgumentError, "Unrecognized event_type: #{event_type}"
  end
end