lib/github_bot/github/payload.rb
# Public: Returns the SHA of the most recent commit for this pull request
#
# @return [String] The SHA of the most recent commit for this pull request
Returns the SHA of the most recent commit for this pull request
Returns the SHA of the most recent commit for this pull request
def head_sha
        if issue_comment?
          'HEAD'
        else
          pull_request[:head][:sha]
        end
      end
def head_sha if issue_comment? 'HEAD' else pull_request [ :head ] [ :sha ] end end
Public: Returns the SHA of the most recent commit for this pull request
Public : Returns the SHA of the most recent commit for this pull request
The SHA of the most recent commit for this pull request
The SHA of the most recent commit for this pull request
String