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 e3f7e27a63
commit a8e6c5406e
4 changed files with 297 additions and 1 deletions
@@ -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