mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 11:40:44 -06:00
Merge pull request #448 from CanineHQ/chriszhu__gh_enterprise
support for github / gitlab enterprise
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
class Integrations::Github::RepositoriesController < ApplicationController
|
||||
def index
|
||||
client = Octokit::Client.new(access_token: current_account.github_provider.access_token)
|
||||
provider = current_account.github_provider
|
||||
client = Git::Github::Client.build_client(
|
||||
access_token: provider.access_token,
|
||||
api_base_url: provider.api_base_url
|
||||
)
|
||||
if params[:q].present?
|
||||
client.auto_paginate = true
|
||||
@repositories = client.repos(current_account.github_username)
|
||||
|
||||
Reference in New Issue
Block a user