Class: Ruboty::Github::Actions::CreatePullRequest

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/github/actions/create_pull_request.rb

Direct Known Subclasses

CreateDeployPullRequest

Constant Summary

Constants inherited from Base

Base::NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#message

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Ruboty::Github::Actions::Base

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/ruboty/github/actions/create_pull_request.rb', line 7

def call
  if has_access_token?
    create_with_error_handling
  else
    require_access_token
  end
  # Action handlers should return truthy value to tell ruboty that the given message has been handled.
  # Otherwise, ruboty tries to execute other handlers.
  true
end