Module: GitHub::Payload::Helpers::Actions

Included in:
Issues, PullRequest
Defined in:
lib/github/payload/helpers/actions.rb

Instance Method Summary collapse

Instance Method Details

#actionObject



5
6
7
# File 'lib/github/payload/helpers/actions.rb', line 5

def action
  payload['action'].to_s
end

#opened?Boolean



9
10
11
# File 'lib/github/payload/helpers/actions.rb', line 9

def opened?
  action == 'opened'
end