lib/fourchette/pull_request.rb in fourchette-0.0.8 vs lib/fourchette/pull_request.rb in fourchette-0.1.0
- old
+ new
@@ -1,9 +1,11 @@
class Fourchette::PullRequest
include SuckerPunch::Job
def perform params
+ return if qa_skip?(params)
+
callbacks = Fourchette::Callbacks.new(params)
fork = Fourchette::Fork.new(params)
callbacks.before_all
@@ -18,6 +20,13 @@
fork.create
end
callbacks.after_all
end
-end
\ No newline at end of file
+
+ private
+
+ def qa_skip? params
+ params['pull_request']['title'].downcase.include?('[qa skip]')
+ end
+
+end