Commit 48cb1c50 authored by Yorick Peterse's avatar Yorick Peterse

Restore GH enterprise support in the Rake task

This restores GH enterprise support in the GH import Rake task.
parent 0c3877a4
...@@ -101,8 +101,8 @@ end ...@@ -101,8 +101,8 @@ end
class GithubRepos class GithubRepos
def initialize(token, current_user, github_repo) def initialize(token, current_user, github_repo)
@client = Octokit::Client @client = Gitlab::GithubImport::Client.new(token)
.new(access_token: token, auto_paginate: true, per_page: 100) @client.octokit.auto_paginate = true
@current_user = current_user @current_user = current_user
@github_repo = github_repo @github_repo = github_repo
...@@ -130,7 +130,7 @@ class GithubRepos ...@@ -130,7 +130,7 @@ class GithubRepos
end end
def repos def repos
@client.list_repositories @client.octokit.list_repositories
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment