Class: Shipit::Webhooks::Handlers::PullRequest::EditedHandler

Inherits:
Handler
  • Object
show all
Defined in:
app/models/shipit/webhooks/handlers/pull_request/edited_handler.rb

Instance Attribute Summary

Attributes inherited from Handler

#params, #payload

Instance Method Summary collapse

Methods inherited from Handler

call, #initialize, params

Constructor Details

This class inherits a constructor from Shipit::Webhooks::Handlers::Handler

Instance Method Details

#processObject



41
42
43
44
45
# File 'app/models/shipit/webhooks/handlers/pull_request/edited_handler.rb', line 41

def process
  return unless respond_to_pull_request_edited?

  pull_request.update(github_pull_request: params.pull_request) if pull_request.present?
end