Method: RightHook::Event.github_name
- Defined in:
- lib/right_hook/event.rb
.github_name(event_type) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# 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 |