Class: ModuleSync::GitService::GitHub
- Defined in:
- lib/modulesync/git_service/github.rb
Overview
GitHub creates and manages pull requests on github.com or GitHub Enterprise installations.
Instance Method Summary collapse
-
#initialize(token, endpoint) ⇒ GitHub
constructor
A new instance of GitHub.
Methods inherited from Base
extract_hostname, guess_endpoint_from, #open_pull_request
Constructor Details
#initialize(token, endpoint) ⇒ GitHub
Returns a new instance of GitHub.
10 11 12 13 14 15 16 17 |
# File 'lib/modulesync/git_service/github.rb', line 10 def initialize(token, endpoint) super() Octokit.configure do |c| c.api_endpoint = endpoint end @api = Octokit::Client.new(access_token: token) end |