Method: Octospy::Parser::Wiki#parse_gollum_event
- Defined in:
- lib/octospy/parser/wiki.rb
#parse_gollum_event ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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 |