Sha256: 2f0088d23a218c21f290707a008bf05efeb4431008d22db9bf9baf7bc288a17d

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 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

8 entries across 8 versions & 1 rubygems

Version Path
octospy-0.2.0 lib/octospy/parser/organization.rb
octospy-0.1.1 lib/octospy/parser/organization.rb
octospy-0.1.0 lib/octospy/parser/organization.rb
octospy-0.0.8 lib/octospy/parser/organization.rb
octospy-0.0.7 lib/octospy/parser/organization.rb
octospy-0.0.6 lib/octospy/parser/organization.rb
octospy-0.0.5 lib/octospy/parser/organization.rb
octospy-0.0.4 lib/octospy/parser/organization.rb