Sha256: 893bcb1c0590b3c08954a75e3d8f0092f09be4a7f624a14b459865eb8f993128

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

module Lita::Extensions
  module GitHubWebHooksCore
    module Hooks
      class Release < Hook
        include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks
        def publisher
          payload["sender"]["login"]
        end
        def version
          payload["release"]["tag_name"]
        end
        def url
          payload["release"]["html_url"]          
        end
        def attributes
          {
            publisher: publisher,
            version: version,
            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/release.rb