Module: OctoMerge
- Defined in:
- lib/octo_merge/strategy/base.rb,
lib/octo_merge.rb,
lib/octo_merge/context.rb,
lib/octo_merge/execute.rb,
lib/octo_merge/version.rb,
lib/octo_merge/strategy.rb,
lib/octo_merge/pull_request.rb,
lib/octo_merge/configuration.rb,
lib/octo_merge/strategy/rebase.rb,
lib/octo_merge/list_pull_requests.rb,
lib/octo_merge/interactive_pull_requests.rb,
lib/octo_merge/strategy/merge_with_rebase.rb,
lib/octo_merge/strategy/merge_without_rebase.rb,
lib/octo_merge/strategy/merge_with_rebase_and_message.rb
Overview
Defined Under Namespace
Modules: Strategy
Classes: Configuration, Context, Execute, InteractivePullRequests, ListPullRequests, PullRequest
Constant Summary
collapse
- VERSION =
"0.5.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
30
31
32
|
# File 'lib/octo_merge.rb', line 30
def configuration
@configuration ||= Configuration.new
end
|
25
26
27
28
|
# File 'lib/octo_merge.rb', line 25
def configure
@github_client = nil
yield(configuration)
end
|
.github_client ⇒ Object
34
35
36
37
38
39
|
# File 'lib/octo_merge.rb', line 34
def github_client
@github_client ||= Octokit::Client.new(
login: configuration.login,
password: configuration.password
)
end
|
.run(repo:, pull_request_numbers:, working_directory:, strategy:) ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/octo_merge.rb', line 15
def run(repo:, pull_request_numbers:, working_directory:, strategy:)
context = Context.new(
working_directory: working_directory,
repo: repo,
pull_request_numbers: pull_request_numbers
)
Execute.new(context: context, strategy: strategy).run
end
|