github_changelog_generator 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -2
- data/CHANGELOG.md +12 -4
- data/README.md +2 -31
- data/lib/CHANGELOG.md +18 -0
- data/lib/github_changelog_generator/fetcher.rb +1 -1
- data/lib/github_changelog_generator/generator/generator.rb +1 -1
- data/lib/github_changelog_generator/generator/generator_fetcher.rb +1 -1
- data/lib/github_changelog_generator/parser.rb +12 -0
- data/lib/github_changelog_generator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 528989c20b737d6f63c246534e5f533ebb7eb572
|
4
|
+
data.tar.gz: 5838001403de62e6e8a3f4a7e71d6328a96fa236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feaa6cabe7b38f1d1c54508a0c7ee1bd0433a0b11ce03f59b7ab819f18aafddad9445883bee7dca935ea4fbd5af2734721407f946e34baccdbb5e520db8d6a91
|
7
|
+
data.tar.gz: 25f5bac35e85e944d6653d9799dbbf2d9d368e15592ca5a526f69dc028686e9a5f21d871a6f9703c1a1c76d3a2a6c4acacc86654eac99fa34fcbc3ae2dcefbff
|
data/.rubocop_todo.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
-
# on 2015-06-11
|
2
|
+
# on 2015-06-12 11:23:12 +0300 using RuboCop version 0.31.0.
|
3
3
|
# The point is for the user to remove these configuration records
|
4
4
|
# one by one as the offenses are removed from the code base.
|
5
5
|
# Note that changes in the inspected code, or installation of new
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
# Offense count: 13
|
9
9
|
Metrics/AbcSize:
|
10
|
-
Max:
|
10
|
+
Max: 71
|
11
11
|
|
12
12
|
# Offense count: 1
|
13
13
|
Metrics/CyclomaticComplexity:
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [1.6.0](https://github.com/skywinder/github-changelog-generator/tree/1.6.0) (2015-06-11)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/1.5.0...
|
5
|
+
[Full Changelog](https://github.com/skywinder/github-changelog-generator/compare/1.5.0...1.6.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Issues with any label expect "bug", "enhancement" are excluded by default. [\#240](https://github.com/skywinder/github-changelog-generator/issues/240)
|
10
|
+
|
11
|
+
- Add ability to specify custom labels for enhancements & bugfixes [\#54](https://github.com/skywinder/github-changelog-generator/issues/54)
|
6
12
|
|
7
13
|
**Fixed bugs:**
|
8
14
|
|
15
|
+
- --user and --project options are broken [\#246](https://github.com/skywinder/github-changelog-generator/issues/246)
|
16
|
+
|
9
17
|
- Exclude and Include tags is broken [\#245](https://github.com/skywinder/github-changelog-generator/issues/245)
|
10
18
|
|
11
19
|
## [1.5.0](https://github.com/skywinder/github-changelog-generator/tree/1.5.0) (2015-05-26)
|
@@ -64,12 +72,12 @@
|
|
64
72
|
|
65
73
|
**Merged pull requests:**
|
66
74
|
|
67
|
-
- Cleanup [\#220](https://github.com/skywinder/github-changelog-generator/pull/220) ([tuexss](https://github.com/tuexss))
|
68
|
-
|
69
75
|
- Implement fetcher class [\#227](https://github.com/skywinder/github-changelog-generator/pull/227) ([skywinder](https://github.com/skywinder))
|
70
76
|
|
71
77
|
- Add coveralls integration [\#223](https://github.com/skywinder/github-changelog-generator/pull/223) ([skywinder](https://github.com/skywinder))
|
72
78
|
|
79
|
+
- Cleanup [\#220](https://github.com/skywinder/github-changelog-generator/pull/220) ([tuexss](https://github.com/tuexss))
|
80
|
+
|
73
81
|
- Rspec & rubocop integration [\#217](https://github.com/skywinder/github-changelog-generator/pull/217) ([skywinder](https://github.com/skywinder))
|
74
82
|
|
75
83
|
- Implement Reader class to parse ChangeLog.md [\#216](https://github.com/skywinder/github-changelog-generator/pull/216) ([estahn](https://github.com/estahn))
|
data/README.md
CHANGED
@@ -80,38 +80,9 @@ Because software tools are for people. If you don’t care, why are you contribu
|
|
80
80
|
As output you will get `CHANGELOG.md` file with pretty *Markdown-formatted* changelog.
|
81
81
|
|
82
82
|
### Params
|
83
|
-
Type `github_changelog_generator --help` for
|
84
|
-
|
85
|
-
Usage: github_changelog_generator [options]
|
86
|
-
-u, --user [USER] Username of the owner of target GitHub repo
|
87
|
-
-p, --project [PROJECT] Name of project on GitHub
|
88
|
-
-t, --token [TOKEN] To make more than 50 requests per hour your GitHub token is required. You can generate it at: https://github.com/settings/tokens/new
|
89
|
-
-f, --date-format [FORMAT] Date format. Default is %Y-%m-%d
|
90
|
-
-o, --output [NAME] Output file. Default is CHANGELOG.md
|
91
|
-
--[no-]issues Include closed issues in changelog. Default is true
|
92
|
-
--[no-]issues-wo-labels Include closed issues without labels in changelog. Default is true
|
93
|
-
--[no-]pr-wo-labels Include pull requests without labels in changelog. Default is true
|
94
|
-
--[no-]pull-requests Include pull-requests in changelog. Default is true
|
95
|
-
--[no-]filter-by-milestone Use milestone to detect when issue was resolved. Default is true
|
96
|
-
--[no-]author Add author of pull-request in the end. Default is true
|
97
|
-
--unreleased-only Generate log from unreleased closed issues only.
|
98
|
-
--[no-]unreleased Add to log unreleased closed issues. Default is true
|
99
|
-
--unreleased-label [label] Add to log unreleased closed issues. Default is true
|
100
|
-
--[no-]compare-link Include compare link (Full Changelog) between older version and newer version. Default is true
|
101
|
-
--include-labels x,y,z Only issues with the specified labels will be included in the changelog. Default is 'bug,enhancement'
|
102
|
-
--exclude-labels x,y,z Issues with the specified labels will be always excluded from changelog. Default is 'duplicate,question,invalid,wontfix'
|
103
|
-
--between-tags x,y,z Change log will be filled only between specified tags
|
104
|
-
--exclude-tags x,y,z Change log will be exclude specified tags
|
105
|
-
--max-issues [NUMBER] Max number of issues to fetch from GitHub. Default is unlimited
|
106
|
-
--github-site [URL] The Enterprise Github site on which your project is hosted.
|
107
|
-
--github-api [URL] The enterprise endpoint to use for your Github API.
|
108
|
-
--simple-list Create simple list from issues and pull requests. Default is false.
|
109
|
-
--future-release [RELEASE-VERSION]
|
110
|
-
Put the unreleased changes in the specified release number.
|
111
|
-
--[no-]verbose Run verbosely. Default is true
|
112
|
-
-v, --version Print version number
|
113
|
-
-h, --help Displays Help
|
83
|
+
Type `github_changelog_generator --help` for details.
|
114
84
|
|
85
|
+
More detailed info about params you can find in Wiki page: [**Advanced change log generation examples**](https://github.com/skywinder/github-changelog-generator/wiki/Advanced-change-log-generation-examples)
|
115
86
|
|
116
87
|
### GitHub token
|
117
88
|
|
data/lib/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [Unreleased](https://github.com/skywinder/changelog_test/tree/HEAD)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/skywinder/changelog_test/compare/0.0.4...HEAD)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Enchancment [\#9](https://github.com/skywinder/changelog_test/issues/9)
|
10
|
+
|
11
|
+
**Fixed bugs:**
|
12
|
+
|
13
|
+
- BugFix [\#11](https://github.com/skywinder/changelog_test/issues/11)
|
14
|
+
|
15
|
+
**Closed issues:**
|
16
|
+
|
17
|
+
- Issue [\#10](https://github.com/skywinder/changelog_test/issues/10)
|
18
|
+
|
19
|
+
- Issue with some other label - Should be in closed issues [\#8](https://github.com/skywinder/changelog_test/issues/8)
|
20
|
+
|
3
21
|
## [0.0.4](https://github.com/skywinder/changelog_test/tree/0.0.4) (2015-05-22)
|
4
22
|
|
5
23
|
[Full Changelog](https://github.com/skywinder/changelog_test/compare/v0.0.3...0.0.4)
|
@@ -166,10 +166,10 @@ Make sure, that you push tags to remote repo via 'git push --tags'".yellow
|
|
166
166
|
obj = @github.issues.events.list user: @options[:user],
|
167
167
|
repo: @options[:project],
|
168
168
|
issue_number: issue["number"]
|
169
|
+
issue[:events] = obj.body
|
169
170
|
rescue
|
170
171
|
Helper.log.warn GH_RATE_LIMIT_EXCEEDED_MSG.yellow
|
171
172
|
end
|
172
|
-
issue[:events] = obj.body
|
173
173
|
print_in_same_line("Fetching events for issues and PR: #{i + 1}/#{issues.count}")
|
174
174
|
i += 1
|
175
175
|
end
|
@@ -41,8 +41,8 @@ module GitHubChangelogGenerator
|
|
41
41
|
threads << Thread.new { find_closed_date_by_commit(issue) }
|
42
42
|
end
|
43
43
|
threads.each(&:join)
|
44
|
-
puts "Fetching closed dates for issues: Done!" if @options[:verbose]
|
45
44
|
end
|
45
|
+
puts "Fetching closed dates for issues: Done!" if @options[:verbose]
|
46
46
|
end
|
47
47
|
|
48
48
|
# Fill :actual_date parameter of specified issue by closed date of the commit, if it was closed by commit.
|
@@ -50,6 +50,18 @@ module GitHubChangelogGenerator
|
|
50
50
|
opts.on("-o", "--output [NAME]", "Output file. Default is CHANGELOG.md") do |last|
|
51
51
|
options[:output] = last
|
52
52
|
end
|
53
|
+
opts.on("--bugs-label [LABEL]", "Setup custom label for bug-fixes section. Default is \"**Fixed bugs:**""") do |v|
|
54
|
+
options[:bug_prefix] = v
|
55
|
+
end
|
56
|
+
opts.on("--enhancement-label [LABEL]", "Setup custom label for enhancements section. Default is \"**Implemented enhancements:**\"") do |v|
|
57
|
+
options[:enhancement_prefix] = v
|
58
|
+
end
|
59
|
+
opts.on("--issues-label [LABEL]", "Setup custom label for closed-issues section. Default is \"**Closed issues:**\"") do |v|
|
60
|
+
options[:issue_prefix] = v
|
61
|
+
end
|
62
|
+
opts.on("--pr-label [LABEL]", "Setup custom label for pull requests section. Default is \"**Merged pull requests:**\"") do |v|
|
63
|
+
options[:merge_prefix] = v
|
64
|
+
end
|
53
65
|
opts.on("--[no-]issues", "Include closed issues in changelog. Default is true") do |v|
|
54
66
|
options[:issues] = v
|
55
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_changelog_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petr Korolev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github_api
|