Module: Octospy::Parser::Wiki
- Included in:
- Octospy::Parser
- Defined in:
- lib/octospy/parser/wiki.rb
Instance Method Summary collapse
Instance Method Details
#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 = @event.payload.pages[0].html_url url = "#{url}/_compare/#{sha}%5E...#{sha}" if action == 'edited' { status: "#{action} the #{@event.repo.name} wiki", title: title, link: url } end |