Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
879668b605 | ||
|
|
92137ba0b2 | ||
|
|
b2a29d7279 | ||
|
|
52d14f4b0a | ||
|
|
4d4e8ef5a4 | ||
|
|
d4dfc99127 | ||
|
|
88b23ba790 | ||
|
|
d122e00a1a | ||
|
|
3c39c0c178 | ||
|
|
c10c583509 | ||
|
|
f6466d7a22 | ||
|
|
aff1561042 | ||
|
|
289b2e1866 |
@@ -17,11 +17,11 @@ matrix:
|
|||||||
gemfile: gemfiles/Gemfile.2_1
|
gemfile: gemfiles/Gemfile.2_1
|
||||||
- rvm: 2.3.1
|
- rvm: 2.3.1
|
||||||
gemfile: gemfiles/Gemfile.2_3_1
|
gemfile: gemfiles/Gemfile.2_3_1
|
||||||
- rvm: 2.4.0-preview2
|
- rvm: 2.4.0-preview3
|
||||||
gemfile: gemfiles/Gemfile.2_4_0
|
gemfile: gemfiles/Gemfile.2_4_0
|
||||||
- rvm: jruby-9.1.5.0
|
- rvm: jruby-9.1.6.0
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
gemfile: gemfiles/Gemfile.jruby-9.1.5.0
|
gemfile: gemfiles/Gemfile.jruby-9.1
|
||||||
env:
|
env:
|
||||||
- JRUBY_OPTS=--debug
|
- JRUBY_OPTS=--debug
|
||||||
|
|
||||||
|
|||||||
42
CHANGELOG.md
42
CHANGELOG.md
@@ -1,7 +1,47 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## [v1.14.0](https://github.com/skywinder/github-changelog-generator/tree/v1.14.0) (2016-11-05)
|
||||||
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/1.13.2...v1.14.0)
|
||||||
|
|
||||||
|
**Implemented enhancements:**
|
||||||
|
|
||||||
|
- On OctoKit::Forbidden error: retry with exponential backoff [\#434](https://github.com/skywinder/github-changelog-generator/pull/434) ([awaage](https://github.com/awaage))
|
||||||
|
- Use octokit, carrying awaage commits [\#422](https://github.com/skywinder/github-changelog-generator/pull/422) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Add option to show selected labels in the issue line [\#418](https://github.com/skywinder/github-changelog-generator/pull/418) ([aih](https://github.com/aih))
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- unreleased and unreleased-label [\#374](https://github.com/skywinder/github-changelog-generator/issues/374)
|
||||||
|
- Problems installing 1.11.7 on Windows when git absent [\#349](https://github.com/skywinder/github-changelog-generator/issues/349)
|
||||||
|
|
||||||
|
**Closed issues:**
|
||||||
|
|
||||||
|
- broken issue-line-labels in log [\#442](https://github.com/skywinder/github-changelog-generator/issues/442)
|
||||||
|
- Broken multi hyphen options in param file [\#440](https://github.com/skywinder/github-changelog-generator/issues/440)
|
||||||
|
- Install error on Mac: "rack requires Ruby version \>= 2.2.2" [\#425](https://github.com/skywinder/github-changelog-generator/issues/425)
|
||||||
|
- Changelog includes issues going back months too far [\#394](https://github.com/skywinder/github-changelog-generator/issues/394)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Fixed issue \#442 - broken issue-line-labels in log. [\#443](https://github.com/skywinder/github-changelog-generator/pull/443) ([thorsteneckel](https://github.com/thorsteneckel))
|
||||||
|
- Fixed issue \#440 - broken multi hyphen options in param file. [\#441](https://github.com/skywinder/github-changelog-generator/pull/441) ([thorsteneckel](https://github.com/thorsteneckel))
|
||||||
|
- Option --unreleased-label explained [\#439](https://github.com/skywinder/github-changelog-generator/pull/439) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Fixed issue \#304 - entries of previous tags are included. [\#438](https://github.com/skywinder/github-changelog-generator/pull/438) ([thorsteneckel](https://github.com/thorsteneckel))
|
||||||
|
- man page: Add undescribed options [\#437](https://github.com/skywinder/github-changelog-generator/pull/437) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- On GitHub MAX\_THREAD\_NUMBER is 25 [\#433](https://github.com/skywinder/github-changelog-generator/pull/433) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- OctoFetcher, Options: Refactoring [\#432](https://github.com/skywinder/github-changelog-generator/pull/432) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Fix typo in Readme [\#431](https://github.com/skywinder/github-changelog-generator/pull/431) ([rmtheis](https://github.com/rmtheis))
|
||||||
|
- Fix: Turn Sawyer method into String-keyed hash access [\#429](https://github.com/skywinder/github-changelog-generator/pull/429) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Spec: Test a url helper function [\#428](https://github.com/skywinder/github-changelog-generator/pull/428) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Rubocop TODO file regenerated [\#427](https://github.com/skywinder/github-changelog-generator/pull/427) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Drop a stray Markdown file [\#426](https://github.com/skywinder/github-changelog-generator/pull/426) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Travis: Add JRuby 9.1.5.0 to matrix [\#424](https://github.com/skywinder/github-changelog-generator/pull/424) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
|
||||||
## [1.13.2](https://github.com/skywinder/github-changelog-generator/tree/1.13.2) (2016-09-29)
|
## [1.13.2](https://github.com/skywinder/github-changelog-generator/tree/1.13.2) (2016-09-29)
|
||||||
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/1.13.1...1.13.2)
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/v1.13.2...1.13.2)
|
||||||
|
|
||||||
|
## [v1.13.2](https://github.com/skywinder/github-changelog-generator/tree/v1.13.2) (2016-09-29)
|
||||||
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/1.13.1...v1.13.2)
|
||||||
|
|
||||||
**Implemented enhancements:**
|
**Implemented enhancements:**
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ Gem::Specification.new do |spec|
|
|||||||
|
|
||||||
spec.add_runtime_dependency "rake", ">= 10.0"
|
spec.add_runtime_dependency "rake", ">= 10.0"
|
||||||
spec.add_runtime_dependency "rainbow", ">= 2.1"
|
spec.add_runtime_dependency "rainbow", ">= 2.1"
|
||||||
spec.add_runtime_dependency("octokit", ["~> 4.0"])
|
spec.add_runtime_dependency("octokit", ["~> 4.6"])
|
||||||
spec.add_runtime_dependency("faraday-http-cache")
|
spec.add_runtime_dependency("faraday-http-cache")
|
||||||
spec.add_runtime_dependency("activesupport")
|
spec.add_runtime_dependency("activesupport")
|
||||||
spec.add_runtime_dependency("retriable", ["~> 2.1"])
|
spec.add_runtime_dependency("retriable", ["~> 2.1"])
|
||||||
|
spec.add_runtime_dependency("multi_json")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -244,38 +244,49 @@ Make sure, that you push tags to remote repo via 'git push --tags'"
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
MovedPermanentlyError = Class.new(RuntimeError)
|
||||||
|
|
||||||
# Iterates through all pages until there are no more :next pages to follow
|
# Iterates through all pages until there are no more :next pages to follow
|
||||||
# yields the result per page
|
# yields the result per page
|
||||||
#
|
#
|
||||||
# @param [Octokit::Client] client
|
# @param [Octokit::Client] client
|
||||||
# @param [String] method (eg. 'tags')
|
# @param [String] method (eg. 'tags')
|
||||||
|
#
|
||||||
|
# @yield [Sawyer::Resource] An OctoKit-provided response (which can be empty)
|
||||||
|
#
|
||||||
# @return [Integer] total number of pages
|
# @return [Integer] total number of pages
|
||||||
def iterate_pages(client, method, *args)
|
def iterate_pages(client, method, *args)
|
||||||
if args.size == 1 && args.first.is_a?(Hash)
|
request_opts = extract_request_args(args)
|
||||||
request_options = args.delete_at(0)
|
args.push(@request_options.merge(request_opts))
|
||||||
elsif args.size > 1 && args.last.is_a?(Hash)
|
|
||||||
request_options = args.delete_at(args.length - 1)
|
|
||||||
end
|
|
||||||
|
|
||||||
args.push(@request_options.merge(request_options))
|
number_of_pages = 1
|
||||||
|
|
||||||
pages = 1
|
check_github_response { client.send(method, user_project, *args) }
|
||||||
|
|
||||||
check_github_response do
|
|
||||||
client.send(method, user_project, *args)
|
|
||||||
end
|
|
||||||
last_response = client.last_response
|
last_response = client.last_response
|
||||||
|
if last_response.status == 301
|
||||||
|
raise MovedPermanentlyError, last_response.data[:url]
|
||||||
|
end
|
||||||
|
|
||||||
yield last_response.data
|
yield(last_response.data)
|
||||||
|
|
||||||
until (next_one = last_response.rels[:next]).nil?
|
until (next_one = last_response.rels[:next]).nil?
|
||||||
pages += 1
|
number_of_pages += 1
|
||||||
|
|
||||||
last_response = check_github_response { next_one.get }
|
last_response = check_github_response { next_one.get }
|
||||||
yield last_response.data
|
yield(last_response.data)
|
||||||
end
|
end
|
||||||
|
|
||||||
pages
|
number_of_pages
|
||||||
|
end
|
||||||
|
|
||||||
|
def extract_request_args(args)
|
||||||
|
if args.size == 1 && args.first.is_a?(Hash)
|
||||||
|
args.delete_at(0)
|
||||||
|
elsif args.size > 1 && args.last.is_a?(Hash)
|
||||||
|
args.delete_at(args.length - 1)
|
||||||
|
else
|
||||||
|
{}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# This is wrapper with rescue block
|
# This is wrapper with rescue block
|
||||||
@@ -285,7 +296,9 @@ Make sure, that you push tags to remote repo via 'git push --tags'"
|
|||||||
Retriable.retriable(retry_options) do
|
Retriable.retriable(retry_options) do
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
|
rescue MovedPermanentlyError => e
|
||||||
|
Helper.log.error("#{e.class}: #{e.message}")
|
||||||
|
sys_abort("The repository has moved, please update your configuration")
|
||||||
rescue Octokit::Forbidden => e
|
rescue Octokit::Forbidden => e
|
||||||
Helper.log.error("#{e.class}: #{e.message}")
|
Helper.log.error("#{e.class}: #{e.message}")
|
||||||
sys_abort("Exceeded retry limit")
|
sys_abort("Exceeded retry limit")
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
module GitHubChangelogGenerator
|
module GitHubChangelogGenerator
|
||||||
VERSION = "1.14.0"
|
VERSION = "1.14.2"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user