Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ぺろぺろ - Github pull request bot framework -

mzp
February 11, 2017
3k

ぺろぺろ - Github pull request bot framework -

名古屋Ruby会議 03

mzp

February 11, 2017
Tweet

Transcript

  1. ྫ"DUJPO  class Prpr::Action::Merged < Prpr::Action::Base def call if merged?

    Publisher::Adapter::Base.broadcast message end end private def merged? !!event.pull_request.merged_at end .....
  2. ྫ"DUJPO  def message Prpr::Publisher::Message.new(body: body, from: from, room: room)

    end def body env.format(:merged_body, event.pull_request) end def from event.sender end def room env[:merged_room] end