Sha256: 048d98fdb326e3bd8e0247b8d09bb513d0982c386f83021041028d10e4df4bba

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

module Lita::Extensions
  module GitHubWebHooksCore
    module Hooks
      class CommitComment < Hook
        include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks
        def commenter
          payload["sender"]
        end
      
        def url
          comment["html_url"]
        end
      
        def body
          comment["body"]
        end
      
        def comment
          payload["comment"]
        end
        
        def commit_id
          comment["commit_id"]
        end
      
        def attributes
          {
            commenter: commenter,
            commit_id: commit_id,
            url: url,
            body: body,
            comment: comment,
            repository: repository,
            repo: repo
          }
        end
        
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-github-web-hooks-core-1.0.0 lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb