Class: ModuleSync::GitService::GitHub

Inherits:
Base
  • Object
show all
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

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