Class: Octopolo::Scripts::PullRequest
- Defined in:
- lib/octopolo/scripts/pull_request.rb
Instance Attribute Summary collapse
-
#destination_branch ⇒ Object
Returns the value of attribute destination_branch.
-
#pull_request ⇒ Object
(also: #issue)
Returns the value of attribute pull_request.
Attributes inherited from Issue
#jira_ids, #labels, #options, #pivotal_ids, #title
Attributes included from GitWrapper
Attributes included from ConfigWrapper
Attributes included from CLIWrapper
Class Method Summary collapse
Instance Method Summary collapse
- #default_destination_branch ⇒ Object
- #execute ⇒ Object
-
#initialize(destination_branch = nil, options = {}) ⇒ PullRequest
constructor
A new instance of PullRequest.
Methods inherited from Issue
#ask_jira_ids, #generate_generic_label_choices, #label_choices, #label_hash, #label_prompt, #label_questions
Constructor Details
#initialize(destination_branch = nil, options = {}) ⇒ PullRequest
Returns a new instance of PullRequest.
19 20 21 22 |
# File 'lib/octopolo/scripts/pull_request.rb', line 19 def initialize(destination_branch=nil, ={}) @destination_branch = destination_branch || default_destination_branch @options = end |
Instance Attribute Details
#destination_branch ⇒ Object
Returns the value of attribute destination_branch.
11 12 13 |
# File 'lib/octopolo/scripts/pull_request.rb', line 11 def destination_branch @destination_branch end |
#pull_request ⇒ Object Also known as: issue
Returns the value of attribute pull_request.
10 11 12 |
# File 'lib/octopolo/scripts/pull_request.rb', line 10 def pull_request @pull_request end |
Class Method Details
.execute(destination_branch = nil, options = {}) ⇒ Object
15 16 17 |
# File 'lib/octopolo/scripts/pull_request.rb', line 15 def self.execute(destination_branch=nil, ={}) new(destination_branch, ).execute end |
Instance Method Details
#default_destination_branch ⇒ Object
24 25 26 |
# File 'lib/octopolo/scripts/pull_request.rb', line 24 def default_destination_branch config.deploy_branch end |