Sha256: aea0f95f23c54eafc9e25e83d6134542ab27fbe4f218baac571ca70f57eeb85d

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

module Lita::Extensions
  module GitHubWebHooksCore
    module Hooks
      class Fork < Hook
        include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks
        def forker
          payload["sender"]["login"]          
        end
        def source
          payload["forkee"]["full_name"]
        end
        def target
          repo
        end
        def attributes
          {
            forker: forker,
            source: source,
            target: target
          }
        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/fork.rb