Sha256: 1676e613df7b2d63b21539a6b0b40108477c6a6a4796da13a8e34be4c8146e77

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

module Octospy
  class Parser
    module Organization
      def parse_team_add_event
        {
          status: "add team",
          title: @event.payload.team.name
        }
      end

      def parse_member_event
        user = @event.payload.member

        {
          status: "#{@event.payload.action} member",
          title: user.login,
          link: "#{Octokit.web_endpoint}/#{user.login}"
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octospy-0.0.3 lib/octospy/parser/organization.rb
octospy-0.0.2 lib/octospy/parser/organization.rb
octospy-0.0.1 lib/octospy/parser/organization.rb