Module: Dependabot
- Defined in:
- lib/dependabot.rb,
lib/dependabot/cli.rb,
lib/dependabot/git.rb,
lib/dependabot/publish.rb,
lib/dependabot/version.rb,
lib/dependabot/callback.rb,
lib/dependabot/cli/scan.rb,
lib/dependabot/npm/update.rb,
lib/dependabot/pull_request.rb,
lib/dependabot/bundler/update.rb
Defined Under Namespace
Modules: Bundler, CLI, Npm
Classes: Callback, Error, Git, Publish, PullRequest
Constant Summary
collapse
- VERSION =
"0.1.11"
Class Method Summary
collapse
Class Method Details
.github ⇒ Object
36
37
38
|
# File 'lib/dependabot.rb', line 36
def self.github
@github ||= GitHub.new
end
|
.logger ⇒ Object
22
23
24
|
# File 'lib/dependabot.rb', line 22
def self.logger
::Straw.logger
end
|
.octokit ⇒ Object
26
27
28
29
30
31
32
33
34
|
# File 'lib/dependabot.rb', line 26
def self.octokit
@octokit ||= Octokit::Client.new.tap do |client|
client.access_token = github.token
client.api_endpoint = github.api_url
client.auto_paginate = true
client.connection_options = { request: { open_timeout: 5, timeout: 5 } }
client.web_endpoint = github.server_url
end
end
|