lib/tutter/action/sppuppet.rb in tutter-sppuppet-0.0.12 vs lib/tutter/action/sppuppet.rb in tutter-sppuppet-0.0.13
- old
+ new
@@ -80,10 +80,10 @@
if /^(\-1|:\-1:)/.match i.body
return 200, "#{@project} #{pull_request_id} has a -1. I will not take the blame"
end
end
- merge = (comments.last.body == '!merge' || comments.last.body == ':shipit:')
+ merge = (comments.last.body == '!merge' || comments.last.body.starts_with?(':shipit:'))
if plus_one.count >= @settings['plus_ones_required'] && merge
json = { url: pr.html_url,
title: pr.title,
author: pr.user.login,