Compare commits
23 Commits
v1.14.2
...
fix/2.4.1-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3da434e4a | ||
|
|
9cb6306b47 | ||
|
|
d334aa01f2 | ||
|
|
1e9e72f1a5 | ||
|
|
acf1c1604a | ||
|
|
d29c117454 | ||
|
|
8d74965019 | ||
|
|
17702543ef | ||
|
|
4ec3ad4a54 | ||
|
|
08e7a954ff | ||
|
|
8ea623fd81 | ||
|
|
6e61dfb378 | ||
|
|
3fee4fca75 | ||
|
|
9fc00f3dc3 | ||
|
|
132ecf255c | ||
|
|
238f779d38 | ||
|
|
0b88c3bd54 | ||
|
|
9c0f7c723f | ||
|
|
881ecc161c | ||
|
|
88cbcd22ed | ||
|
|
07081ccf46 | ||
|
|
a9b49927ee | ||
|
|
4a74bd0ba6 |
12
.codeclimate.yml
Normal file
12
.codeclimate.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
engines:
|
||||||
|
duplication:
|
||||||
|
enabled: true
|
||||||
|
config:
|
||||||
|
languages:
|
||||||
|
- ruby
|
||||||
|
rubocop:
|
||||||
|
enabled: true
|
||||||
|
ratings:
|
||||||
|
paths:
|
||||||
|
- "**.rb"
|
||||||
|
exclude_paths:
|
||||||
@@ -10,6 +10,9 @@ AllCops:
|
|||||||
Metrics/LineLength:
|
Metrics/LineLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Performance/RegexpMatch:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
#http://viget.com/extend/just-use-double-quoted-ruby-strings
|
#http://viget.com/extend/just-use-double-quoted-ruby-strings
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
@@ -67,3 +70,7 @@ Style/NumericPredicate:
|
|||||||
|
|
||||||
Style/SafeNavigation:
|
Style/SafeNavigation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Metrics/BlockLength:
|
||||||
|
Exclude:
|
||||||
|
- 'spec/**/*'
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2.3.1
|
2.4.0
|
||||||
29
.travis.yml
29
.travis.yml
@@ -6,32 +6,31 @@ before_install:
|
|||||||
- gem install bundler
|
- gem install bundler
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- rvm: 2.2.2
|
- rvm: 2.2.6
|
||||||
install: true # This skips 'bundle install'
|
install: true # This skips 'bundle install'
|
||||||
script: gem build github_changelog_generator && gem install *.gem
|
script: gem build github_changelog_generator && gem install *.gem
|
||||||
- rvm: 2.2.2
|
- rvm: 2.2.6
|
||||||
install: true # This skips 'bundle install'
|
install: true # This skips 'bundle install'
|
||||||
script: gem build github_changelog_generator && bundle install
|
script: gem build github_changelog_generator && bundle install
|
||||||
gemfile: spec/install-gem-in-bundler.gemfile
|
gemfile: spec/install-gem-in-bundler.gemfile
|
||||||
- rvm: 2.1
|
- rvm: 2.1
|
||||||
gemfile: gemfiles/Gemfile.2_1
|
- rvm: 2.3.3
|
||||||
- rvm: 2.3.1
|
- rvm: 2.4.1
|
||||||
gemfile: gemfiles/Gemfile.2_3_1
|
- rvm: jruby-9.1.8.0
|
||||||
- rvm: 2.4.0-preview3
|
|
||||||
gemfile: gemfiles/Gemfile.2_4_0
|
|
||||||
- rvm: jruby-9.1.6.0
|
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
gemfile: gemfiles/Gemfile.jruby-9.1
|
|
||||||
env:
|
env:
|
||||||
- JRUBY_OPTS=--debug
|
- JRUBY_OPTS=--debug
|
||||||
|
- rvm: jruby-head
|
||||||
|
jdk: oraclejdk8
|
||||||
|
env:
|
||||||
|
- JRUBY_OPTS=--debug
|
||||||
|
- DEBUG=1
|
||||||
|
allow_failures:
|
||||||
|
- rvm: jruby-head
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
recipients:
|
|
||||||
- sky4winder+githubchangeloggenerator@gmail.com
|
|
||||||
on_success: never
|
|
||||||
on_failure: change
|
|
||||||
addons:
|
addons:
|
||||||
code_climate:
|
code_climate:
|
||||||
repo_token:
|
repo_token:
|
||||||
secure: iMpV5IAvH+/EVGZrpWnt2BnmNFzSbsRcIumsr4ZyLC8N5nrCSXyjCSy0g48btL3Sj0bSgK9hcrJsmrFd2bkqFleyAcPAzNyUQzBuIRZx47O8yFmbZ+Pj+l3+KOlmcbzJNHfDfxkxuWTmTAcSDfsiyApin721T/ey3SUuwKpZNUc=
|
secure: iMpV5IAvH+/EVGZrpWnt2BnmNFzSbsRcIumsr4ZyLC8N5nrCSXyjCSy0g48btL3Sj0bSgK9hcrJsmrFd2bkqFleyAcPAzNyUQzBuIRZx47O8yFmbZ+Pj+l3+KOlmcbzJNHfDfxkxuWTmTAcSDfsiyApin721T/ey3SUuwKpZNUc=
|
||||||
|
after_success:
|
||||||
|
- bundle exec codeclimate-test-reporter
|
||||||
|
|||||||
54
CHANGELOG.md
54
CHANGELOG.md
@@ -1,7 +1,50 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## [v1.14.3](https://github.com/skywinder/github-changelog-generator/tree/v1.14.3) (2016-12-31)
|
||||||
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/v1.14.2...v1.14.3)
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- Use Octokit::Client for both .com and Enterprise [\#455](https://github.com/skywinder/github-changelog-generator/pull/455) ([eliperkins](https://github.com/eliperkins))
|
||||||
|
|
||||||
|
**Closed issues:**
|
||||||
|
|
||||||
|
- Last tag contains too many PRs [\#291](https://github.com/skywinder/github-changelog-generator/issues/291)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- CodeClimate configuration file [\#465](https://github.com/skywinder/github-changelog-generator/pull/465) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Travis: Build against 2.4.0 [\#464](https://github.com/skywinder/github-changelog-generator/pull/464) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Travis: add jruby-head, 2.4.0-rc1 [\#463](https://github.com/skywinder/github-changelog-generator/pull/463) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Gemfiles for building versions separately dropped [\#461](https://github.com/skywinder/github-changelog-generator/pull/461) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- Order Gemfile gems A-Z; add ruby version marker [\#460](https://github.com/skywinder/github-changelog-generator/pull/460) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
- README: Documentation update about RakeTask params and how to translate labels [\#454](https://github.com/skywinder/github-changelog-generator/pull/454) ([edusantana](https://github.com/edusantana))
|
||||||
|
- Travis: Use ruby 2.3.3 and 2.2.6 [\#452](https://github.com/skywinder/github-changelog-generator/pull/452) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
|
||||||
|
## [v1.14.2](https://github.com/skywinder/github-changelog-generator/tree/v1.14.2) (2016-11-12)
|
||||||
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/v1.14.1...v1.14.2)
|
||||||
|
|
||||||
|
**Implemented enhancements:**
|
||||||
|
|
||||||
|
- OctoFetcher: Moved repositories fail explicitly [\#449](https://github.com/skywinder/github-changelog-generator/pull/449) ([olleolleolle](https://github.com/olleolleolle))
|
||||||
|
|
||||||
|
**Closed issues:**
|
||||||
|
|
||||||
|
- Error: can't convert Sawyer::Resource to Array when iterating over a 301 Moved Permanently [\#448](https://github.com/skywinder/github-changelog-generator/issues/448)
|
||||||
|
|
||||||
|
## [v1.14.1](https://github.com/skywinder/github-changelog-generator/tree/v1.14.1) (2016-11-06)
|
||||||
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/v1.14.0...v1.14.1)
|
||||||
|
|
||||||
|
**Closed issues:**
|
||||||
|
|
||||||
|
- multi\_json is required but is listed as a test dependency [\#444](https://github.com/skywinder/github-changelog-generator/issues/444)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Add multi\_json as a runtime dependency [\#445](https://github.com/skywinder/github-changelog-generator/pull/445) ([rnelson0](https://github.com/rnelson0))
|
||||||
|
|
||||||
## [v1.14.0](https://github.com/skywinder/github-changelog-generator/tree/v1.14.0) (2016-11-05)
|
## [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)
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/v1.13.2...v1.14.0)
|
||||||
|
|
||||||
**Implemented enhancements:**
|
**Implemented enhancements:**
|
||||||
|
|
||||||
@@ -37,11 +80,11 @@
|
|||||||
- Drop a stray Markdown file [\#426](https://github.com/skywinder/github-changelog-generator/pull/426) ([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))
|
- 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)
|
|
||||||
[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)
|
## [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)
|
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/1.13.2...v1.13.2)
|
||||||
|
|
||||||
|
## [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)
|
||||||
|
|
||||||
**Implemented enhancements:**
|
**Implemented enhancements:**
|
||||||
|
|
||||||
@@ -251,6 +294,7 @@
|
|||||||
|
|
||||||
**Implemented enhancements:**
|
**Implemented enhancements:**
|
||||||
|
|
||||||
|
- We should add a git-generate-changelog command. [\#255](https://github.com/skywinder/github-changelog-generator/issues/255)
|
||||||
- YAML front matter [\#322](https://github.com/skywinder/github-changelog-generator/pull/322) ([retorquere](https://github.com/retorquere))
|
- YAML front matter [\#322](https://github.com/skywinder/github-changelog-generator/pull/322) ([retorquere](https://github.com/retorquere))
|
||||||
- Git Subcommand [\#288](https://github.com/skywinder/github-changelog-generator/pull/288) ([dlanileonardo](https://github.com/dlanileonardo))
|
- Git Subcommand [\#288](https://github.com/skywinder/github-changelog-generator/pull/288) ([dlanileonardo](https://github.com/dlanileonardo))
|
||||||
|
|
||||||
|
|||||||
18
Gemfile
18
Gemfile
@@ -1,12 +1,14 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
ruby RUBY_VERSION
|
||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem "rake"
|
|
||||||
gem "bundler"
|
gem "bundler"
|
||||||
gem "overcommit", ">= 0.31"
|
gem "overcommit", ">= 0.31"
|
||||||
|
gem "rake"
|
||||||
gem "rubocop", ">= 0.43"
|
gem "rubocop", ">= 0.43"
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -15,16 +17,12 @@ group :development do
|
|||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem "vcr"
|
gem "codeclimate-test-reporter", "~> 1.0"
|
||||||
gem "multi_json"
|
|
||||||
gem "webmock"
|
|
||||||
gem "coveralls", "~>0.8", require: false
|
gem "coveralls", "~>0.8", require: false
|
||||||
gem "simplecov", "~>0.10", require: false
|
|
||||||
gem "codeclimate-test-reporter", "~>0.4"
|
|
||||||
if RUBY_VERSION > "2"
|
|
||||||
gem "json", "~> 2.0", ">= 2.0.2"
|
|
||||||
else
|
|
||||||
gem "json"
|
gem "json"
|
||||||
end
|
gem "multi_json"
|
||||||
gem "rspec", "< 4"
|
gem "rspec", "< 4"
|
||||||
|
gem "simplecov", "~>0.10", require: false
|
||||||
|
gem "vcr"
|
||||||
|
gem "webmock"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ GitHub Changelog Generator 
|
|||||||
|
|
||||||
### Changelog generation has never been so easy
|
### Changelog generation has never been so easy
|
||||||
|
|
||||||
**Fully automate changelog generation** - This gem generates change log file based on **tags**, **issues** and merged **pull requests** (and splits them into separate lists according to labels) from :octocat: GitHub Issue Tracker.
|
**Fully automated changelog generation** - This gem generates a change log file based on **tags**, **issues** and merged **pull requests** (and splits them into separate lists according to labels) from :octocat: GitHub Issue Tracker.
|
||||||
|
|
||||||
Since now you don't have to fill your `CHANGELOG.md` manually: just run the script, relax and take a cup of :coffee: before your next release! :tada:
|
Since now you don't have to fill your `CHANGELOG.md` manually: just run the script, relax and take a cup of :coffee: before your next release! :tada:
|
||||||
|
|
||||||
@@ -151,6 +151,8 @@ end
|
|||||||
|
|
||||||
All command line options can be passed to the `rake` task as `config` parameters. And since you're naming the `rake` task yourself, you can create as many as you want.
|
All command line options can be passed to the `rake` task as `config` parameters. And since you're naming the `rake` task yourself, you can create as many as you want.
|
||||||
|
|
||||||
|
You can look for params names from the [parser source code (#setup_parser)](https://github.com/skywinder/github-changelog-generator/blob/master/lib/github_changelog_generator/parser.rb). For example, to translate the bugs label to Portuguese, instead of setting `config.bugs_label`, you have to set `config.bug_prefix`, and so on.
|
||||||
|
|
||||||
## Features and advantages of this project
|
## Features and advantages of this project
|
||||||
- Generate canonical, neat change log file, followed by [basic change log guidelines](http://keepachangelog.com) :gem:
|
- Generate canonical, neat change log file, followed by [basic change log guidelines](http://keepachangelog.com) :gem:
|
||||||
- Optionally generate **Unreleased** changes (closed issues that have not released yet) :dizzy:
|
- Optionally generate **Unreleased** changes (closed issues that have not released yet) :dizzy:
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
pre:
|
||||||
|
- gem update --system
|
||||||
notify:
|
notify:
|
||||||
webhooks:
|
webhooks:
|
||||||
# A list of hook hashes, containing the url field
|
# A list of hook hashes, containing the url field
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
eval_gemfile File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
gem 'rack', '~> 1.6'
|
|
||||||
gem 'activesupport', '~> 4'
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
eval_gemfile File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
gem 'rack', '>= 2'
|
|
||||||
gem 'activesupport', '>= 4'
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
eval_gemfile File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
gem 'rack', '>= 2'
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
eval_gemfile File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
gem 'rack', '>= 2'
|
|
||||||
|
|
||||||
@@ -25,10 +25,10 @@ Gem::Specification.new do |spec|
|
|||||||
spec.require_paths = ["lib"]
|
spec.require_paths = ["lib"]
|
||||||
|
|
||||||
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.2.1"
|
||||||
spec.add_runtime_dependency("octokit", ["~> 4.6"])
|
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", ["~> 3.0"])
|
||||||
spec.add_runtime_dependency("multi_json")
|
spec.add_runtime_dependency("multi_json")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
require "tmpdir"
|
||||||
require "retriable"
|
require "retriable"
|
||||||
module GitHubChangelogGenerator
|
module GitHubChangelogGenerator
|
||||||
# A Fetcher responsible for all requests to GitHub and all basic manipulation with related data
|
# A Fetcher responsible for all requests to GitHub and all basic manipulation with related data
|
||||||
@@ -23,16 +24,17 @@ module GitHubChangelogGenerator
|
|||||||
# @option options [Boolean] :http_cache Use ActiveSupport::Cache::FileStore to cache http requests
|
# @option options [Boolean] :http_cache Use ActiveSupport::Cache::FileStore to cache http requests
|
||||||
# @option options [Boolean] :cache_file If using http_cache, this is the cache file path
|
# @option options [Boolean] :cache_file If using http_cache, this is the cache file path
|
||||||
# @option options [Boolean] :cache_log If using http_cache, this is the cache log file path
|
# @option options [Boolean] :cache_log If using http_cache, this is the cache log file path
|
||||||
def initialize(options = {}) # rubocop:disable Metrics/CyclomaticComplexity
|
def initialize(options = {})
|
||||||
@options = options || {}
|
@options = options || {}
|
||||||
@user = @options[:user]
|
@user = @options[:user]
|
||||||
@project = @options[:project]
|
@project = @options[:project]
|
||||||
@since = @options[:since]
|
@since = @options[:since]
|
||||||
@http_cache = @options[:http_cache]
|
@http_cache = @options[:http_cache]
|
||||||
@cache_file = @options.fetch(:cache_file, "/tmp/github-changelog-http-cache") if @http_cache
|
if @http_cache
|
||||||
@cache_log = @options.fetch(:cache_log, "/tmp/github-changelog-logger.log") if @http_cache
|
@cache_file = @options.fetch(:cache_file) { File.join(Dir.tmpdir, "github-changelog-http-cache") }
|
||||||
init_cache if @http_cache
|
@cache_log = @options.fetch(:cache_log) { File.join(Dir.tmpdir, "github-changelog-logger.log") }
|
||||||
|
init_cache
|
||||||
|
end
|
||||||
@github_token = fetch_github_token
|
@github_token = fetch_github_token
|
||||||
|
|
||||||
@request_options = { per_page: PER_PAGE_NUMBER }
|
@request_options = { per_page: PER_PAGE_NUMBER }
|
||||||
@@ -40,8 +42,7 @@ module GitHubChangelogGenerator
|
|||||||
@github_options[:access_token] = @github_token unless @github_token.nil?
|
@github_options[:access_token] = @github_token unless @github_token.nil?
|
||||||
@github_options[:api_endpoint] = @options[:github_endpoint] unless @options[:github_endpoint].nil?
|
@github_options[:api_endpoint] = @options[:github_endpoint] unless @options[:github_endpoint].nil?
|
||||||
|
|
||||||
client_type = @options[:github_endpoint].nil? ? Octokit::Client : Octokit::EnterpriseAdminClient
|
@client = Octokit::Client.new(@github_options)
|
||||||
@client = client_type.new(@github_options)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def init_cache
|
def init_cache
|
||||||
|
|||||||
@@ -52,11 +52,6 @@ module GitHubChangelogGenerator
|
|||||||
:verbose
|
:verbose
|
||||||
]
|
]
|
||||||
|
|
||||||
THESE_ARE_DIFFERENT = [
|
|
||||||
:tag1,
|
|
||||||
:tag2
|
|
||||||
]
|
|
||||||
|
|
||||||
def initialize(values)
|
def initialize(values)
|
||||||
super(values)
|
super(values)
|
||||||
unsupported_options.any? && raise(UnsupportedOptionError, unsupported_options.inspect)
|
unsupported_options.any? && raise(UnsupportedOptionError, unsupported_options.inspect)
|
||||||
@@ -78,15 +73,11 @@ module GitHubChangelogGenerator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def unsupported_options
|
def unsupported_options
|
||||||
values.keys - supported_options
|
values.keys - KNOWN_OPTIONS
|
||||||
end
|
end
|
||||||
|
|
||||||
def supported_option?(key)
|
def supported_option?(key)
|
||||||
supported_options.include?(key)
|
KNOWN_OPTIONS.include?(key)
|
||||||
end
|
|
||||||
|
|
||||||
def supported_options
|
|
||||||
KNOWN_OPTIONS + THESE_ARE_DIFFERENT
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -167,10 +167,10 @@ module GitHubChangelogGenerator
|
|||||||
opts.on("--[no-]http-cache", "Use HTTP Cache to cache Github API requests (useful for large repos) Default is true.") do |http_cache|
|
opts.on("--[no-]http-cache", "Use HTTP Cache to cache Github API requests (useful for large repos) Default is true.") do |http_cache|
|
||||||
options[:http_cache] = http_cache
|
options[:http_cache] = http_cache
|
||||||
end
|
end
|
||||||
opts.on("--cache-file [CACHE-FILE]", "Filename to use for cache. Default is /tmp/github-changelog-http-cache") do |cache_file|
|
opts.on("--cache-file [CACHE-FILE]", "Filename to use for cache. Default is github-changelog-http-cache in a temporary directory.") do |cache_file|
|
||||||
options[:cache_file] = cache_file
|
options[:cache_file] = cache_file
|
||||||
end
|
end
|
||||||
opts.on("--cache-log [CACHE-LOG]", "Filename to use for cache log. Default is /tmp/github-changelog-logger.log") do |cache_log|
|
opts.on("--cache-log [CACHE-LOG]", "Filename to use for cache log. Default is github-changelog-logger.log in a temporary directory.") do |cache_log|
|
||||||
options[:cache_log] = cache_log
|
options[:cache_log] = cache_log
|
||||||
end
|
end
|
||||||
opts.on("--[no-]verbose", "Run verbosely. Default is true") do |v|
|
opts.on("--[no-]verbose", "Run verbosely. Default is true") do |v|
|
||||||
@@ -191,8 +191,6 @@ module GitHubChangelogGenerator
|
|||||||
# @return [Hash] Default options
|
# @return [Hash] Default options
|
||||||
def self.default_options
|
def self.default_options
|
||||||
Options.new(
|
Options.new(
|
||||||
tag1: nil,
|
|
||||||
tag2: nil,
|
|
||||||
date_format: "%Y-%m-%d",
|
date_format: "%Y-%m-%d",
|
||||||
output: "CHANGELOG.md",
|
output: "CHANGELOG.md",
|
||||||
base: "HISTORY.md",
|
base: "HISTORY.md",
|
||||||
@@ -218,9 +216,7 @@ module GitHubChangelogGenerator
|
|||||||
bug_prefix: "**Fixed bugs:**",
|
bug_prefix: "**Fixed bugs:**",
|
||||||
enhancement_prefix: "**Implemented enhancements:**",
|
enhancement_prefix: "**Implemented enhancements:**",
|
||||||
git_remote: "origin",
|
git_remote: "origin",
|
||||||
http_cache: true,
|
http_cache: true
|
||||||
cache_file: "/tmp/github-changelog-http-cache",
|
|
||||||
cache_log: "/tmp/github-changelog-logger.log"
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
module GitHubChangelogGenerator
|
module GitHubChangelogGenerator
|
||||||
VERSION = "1.14.2"
|
VERSION = "1.14.3"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "GIT\-GENERATE\-CHANGELOG" "1" "November 2016" "" ""
|
.TH "GIT\-GENERATE\-CHANGELOG" "1" "December 2016" "" ""
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBgit\-generate\-changelog\fR \- Generate changelog from github
|
\fBgit\-generate\-changelog\fR \- Generate changelog from github
|
||||||
@@ -256,13 +256,13 @@ Use HTTP Cache to cache Github API requests (useful for large repos) Default is
|
|||||||
\-\-[no\-]cache\-file [CACHE\-FILE]
|
\-\-[no\-]cache\-file [CACHE\-FILE]
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
Filename to use for cache\. Default is /tmp/github\-changelog\-http\-cache
|
Filename to use for cache\. Default is github\-changelog\-http\-cache in a temporary directory\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
\-\-cache\-log [CACHE\-LOG]
|
\-\-cache\-log [CACHE\-LOG]
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
Filename to use for cache log\. Default is /tmp/github\-changelog\-logger\.log
|
Filename to use for cache log\. Default is github\-changelog\-logger\.log in a temporary directory\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
\-\-[no\-]verbose
|
\-\-[no\-]verbose
|
||||||
|
|||||||
@@ -246,11 +246,11 @@
|
|||||||
|
|
||||||
<p> --[no-]cache-file [CACHE-FILE]</p>
|
<p> --[no-]cache-file [CACHE-FILE]</p>
|
||||||
|
|
||||||
<p> Filename to use for cache. Default is /tmp/github-changelog-http-cache</p>
|
<p> Filename to use for cache. Default is github-changelog-http-cache in a temporary directory.</p>
|
||||||
|
|
||||||
<p> --cache-log [CACHE-LOG]</p>
|
<p> --cache-log [CACHE-LOG]</p>
|
||||||
|
|
||||||
<p> Filename to use for cache log. Default is /tmp/github-changelog-logger.log</p>
|
<p> Filename to use for cache log. Default is github-changelog-logger.log in a temporary directory.</p>
|
||||||
|
|
||||||
<p> --[no-]verbose</p>
|
<p> --[no-]verbose</p>
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@
|
|||||||
|
|
||||||
<ol class='man-decor man-foot man foot'>
|
<ol class='man-decor man-foot man foot'>
|
||||||
<li class='tl'></li>
|
<li class='tl'></li>
|
||||||
<li class='tc'>November 2016</li>
|
<li class='tc'>December 2016</li>
|
||||||
<li class='tr'>git-generate-changelog(1)</li>
|
<li class='tr'>git-generate-changelog(1)</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|||||||
@@ -173,11 +173,11 @@ Automatically generate change log from your tags, issues, labels and pull reques
|
|||||||
|
|
||||||
--[no-]cache-file [CACHE-FILE]
|
--[no-]cache-file [CACHE-FILE]
|
||||||
|
|
||||||
Filename to use for cache. Default is /tmp/github-changelog-http-cache
|
Filename to use for cache. Default is github-changelog-http-cache in a temporary directory.
|
||||||
|
|
||||||
--cache-log [CACHE-LOG]
|
--cache-log [CACHE-LOG]
|
||||||
|
|
||||||
Filename to use for cache log. Default is /tmp/github-changelog-logger.log
|
Filename to use for cache log. Default is github-changelog-logger.log in a temporary directory.
|
||||||
|
|
||||||
--[no-]verbose
|
--[no-]verbose
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
require "codeclimate-test-reporter"
|
|
||||||
require "simplecov"
|
require "simplecov"
|
||||||
require "coveralls"
|
require "coveralls"
|
||||||
require "vcr"
|
require "vcr"
|
||||||
@@ -28,8 +27,7 @@ end
|
|||||||
|
|
||||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
||||||
Coveralls::SimpleCov::Formatter,
|
Coveralls::SimpleCov::Formatter,
|
||||||
SimpleCov::Formatter::HTMLFormatter,
|
SimpleCov::Formatter::HTMLFormatter
|
||||||
CodeClimate::TestReporter::Formatter
|
|
||||||
])
|
])
|
||||||
SimpleCov.start do
|
SimpleCov.start do
|
||||||
add_filter "gemfiles/"
|
add_filter "gemfiles/"
|
||||||
|
|||||||
Reference in New Issue
Block a user