Class: Fourchette::PullRequest
- Inherits:
-
Object
- Object
- Fourchette::PullRequest
- Includes:
- SuckerPunch::Job
- Defined in:
- lib/fourchette/pull_request.rb
Instance Method Summary collapse
Instance Method Details
#perform(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fourchette/pull_request.rb', line 4 def perform params return if qa_skip?(params) callbacks = Fourchette::Callbacks.new(params) fork = Fourchette::Fork.new(params) callbacks.before_all case params['action'] when 'synchronize' # new push against the PR (updating code, basically) fork.update when 'closed' fork.delete when 'reopened' fork.create when 'opened' fork.create end callbacks.after_all end |