created a new fetcher with octokit. functionality should remain same

This commit is contained in:
Andrew Waage
2016-05-18 10:13:22 -07:00
committed by Olle Jonsson
parent fac944786b
commit baa4e3e659
5 changed files with 305 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
# frozen_string_literal: true
require_relative "../fetcher"
require_relative "../octo_fetcher"
require_relative "generator_generation"
require_relative "generator_fetcher"
require_relative "generator_processor"
@@ -21,7 +22,7 @@ module GitHubChangelogGenerator
def initialize(options = nil)
@options = options || {}
@tag_times_hash = {}
@fetcher = GitHubChangelogGenerator::Fetcher.new @options
@fetcher = GitHubChangelogGenerator::OctoFetcher.new @options
end
def fetch_issues_and_pr