lib/github_bot/github/payload.rb
# Public: Return the activity related to the pull request
#
# @return [Hash] The activity related to the pull request
Return the activity related to the pull request
Return the activity related to the pull request
def pull_request
        if pull_request?
          payload[:pull_request]
        elsif check_run?
          payload[:check_run][:pull_requests].first
        elsif issue_comment?
          payload[:issue]
        else
          payload.key?(:pull_request) ? payload[:pull_request] : {}
        end
      end
def pull_request if pull_request? payload [ :pull_request ] elsif check_run? payload [ :check_run ] [ :pull_requests ] . first elsif issue_comment? payload [ :issue ] else payload . key? ( :pull_request ) ? payload [ :pull_request ] : { } end end
Public: Return the activity related to the pull request
Public : Return the activity related to the pull request
The activity related to the pull request
The activity related to the pull request
Hash