Merge pull request #433 from olleolleolle/fix/reinstate-max-thread-at-25

On GitHub MAX_THREAD_NUMBER is 25
This commit is contained in:
Olle Jonsson 2016-10-06 00:36:16 +02:00 committed by GitHub
commit e72edb0d83
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
module GitHubChangelogGenerator
class Generator
MAX_THREAD_NUMBER = 1
MAX_THREAD_NUMBER = 25
# Fetch event for issues and pull requests
# @return [Array] array of fetched issues

View File

@ -7,7 +7,7 @@ module GitHubChangelogGenerator
# fetcher = GitHubChangelogGenerator::OctoFetcher.new(options)
class OctoFetcher
PER_PAGE_NUMBER = 100
MAX_THREAD_NUMBER = 1
MAX_THREAD_NUMBER = 25
CHANGELOG_GITHUB_TOKEN = "CHANGELOG_GITHUB_TOKEN"
GH_RATE_LIMIT_EXCEEDED_MSG = "Warning: Can't finish operation: GitHub API rate limit exceeded, change log may be " \
"missing some issues. You can limit the number of issues fetched using the `--max-issues NUM` argument."