Sha256: 91e021cf17c6123b95b3f4b96bac20b90ad68cf579c3e44398967949e9b4c955

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

module Lita::Extensions
  module GitHubWebHooksCore
    module Hooks
      class Gollum < Hook
        include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks
        def author
          payload["sender"]["login"]
        end
        def title
          payload["pages"].first["page_name"]
        end
        def url
          payload["pages"].first["html_url"]
        end
        def attributes
          {
            author: author,
            title: title,
            url: url,
            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/gollum.rb