module Octospy::Parser::Wiki
Public Instance Methods
parse_gollum_event()
click to toggle source
# File lib/octospy/parser/wiki.rb, line 4 def parse_gollum_event action = @event.payload.pages[0].action title = @event.payload.pages[0].title sha = @event.payload.pages[0].sha[0,6] url = "#{Octokit.web_endpoint}#{@event.repo.name}/wiki" url += "/#{title}/_compare/#{sha}" if action == 'edited' { status: "#{action} the #{@event.repo.name} wiki", title: title, link: url } end