Class: OctoMerge::Strategy::Rebase
- Defined in:
- lib/octo_merge/strategy/rebase.rb
Instance Attribute Summary
Attributes inherited from Base
#pull_requests, #working_directory
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from OctoMerge::Strategy::Base
Instance Method Details
#run ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/octo_merge/strategy/rebase.rb', line 4 def run fetch_master pull_requests.each do |pull_request| fetch(pull_request) git.checkout(pull_request.number_branch) git.rebase(master) git.checkout(master) git.rebase("#{pull_request.number_branch}") git.delete_branch(pull_request.number_branch) end end |