github_changelog_generator 1.10.1 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +40 -0
- data/.rubocop_todo.yml +15 -6
- data/.travis.yml +1 -1
- data/CHANGELOG.md +33 -0
- data/Gemfile.lock +28 -36
- data/README.md +72 -67
- data/Rakefile +17 -1
- data/bin/git-generate-changelog +4 -0
- data/github_changelog_generator.gemspec +4 -4
- data/lib/github_changelog_generator.rb +1 -1
- data/lib/github_changelog_generator/fetcher.rb +5 -5
- data/lib/github_changelog_generator/generator/generator_generation.rb +25 -23
- data/lib/github_changelog_generator/generator/generator_processor.rb +13 -13
- data/lib/github_changelog_generator/generator/generator_tags.rb +12 -12
- data/lib/github_changelog_generator/helper.rb +6 -6
- data/lib/github_changelog_generator/parser.rb +3 -0
- data/lib/github_changelog_generator/parser_file.rb +2 -2
- data/lib/github_changelog_generator/task.rb +2 -2
- data/lib/github_changelog_generator/version.rb +1 -1
- data/man/git-generate-changelog.1 +252 -0
- data/man/git-generate-changelog.html +262 -0
- data/man/git-generate-changelog.md +179 -0
- data/spec/files/github_changelog_params_327 +1 -0
- data/spec/spec_helper.rb +5 -5
- data/spec/unit/parse_file_spec.rb +14 -0
- metadata +39 -17
@@ -0,0 +1,262 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>git-generate-changelog(1) - Generate changelog from github</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
|
+
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
|
+
<a href="#OPTIONS">OPTIONS</a>
|
60
|
+
<a href="#EXAMPLES">EXAMPLES</a>
|
61
|
+
<a href="#AUTHOR">AUTHOR</a>
|
62
|
+
<a href="#REPORTING-BUGS">REPORTING BUGS</a>
|
63
|
+
<a href="#SEE-ALSO">SEE ALSO</a>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<ol class='man-decor man-head man head'>
|
67
|
+
<li class='tl'>git-generate-changelog(1)</li>
|
68
|
+
<li class='tc'></li>
|
69
|
+
<li class='tr'>git-generate-changelog(1)</li>
|
70
|
+
</ol>
|
71
|
+
|
72
|
+
<h2 id="NAME">NAME</h2>
|
73
|
+
<p class="man-name">
|
74
|
+
<code>git-generate-changelog</code> - <span class="man-whatis">Generate changelog from github</span>
|
75
|
+
</p>
|
76
|
+
|
77
|
+
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
78
|
+
|
79
|
+
<p><code>git generate-changelog</code> [-h|--help] [-u|--user] [-p|--project]</p>
|
80
|
+
|
81
|
+
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
82
|
+
|
83
|
+
<p>Automatically generate change log from your tags, issues, labels and pull requests on GitHub.</p>
|
84
|
+
|
85
|
+
<h2 id="OPTIONS">OPTIONS</h2>
|
86
|
+
|
87
|
+
<p> -u, --user [USER]</p>
|
88
|
+
|
89
|
+
<p> Username of the owner of target GitHub repo</p>
|
90
|
+
|
91
|
+
<p> -p, --project [PROJECT]</p>
|
92
|
+
|
93
|
+
<p> Name of project on GitHub</p>
|
94
|
+
|
95
|
+
<p> -t, --token [TOKEN]</p>
|
96
|
+
|
97
|
+
<p> To make more than 50 requests per hour your GitHub token is required. You can generate it at: https://github.com/settings/tokens/new</p>
|
98
|
+
|
99
|
+
<p> -f, --date-format [FORMAT]</p>
|
100
|
+
|
101
|
+
<p> Date format. Default is %Y-%m-%d</p>
|
102
|
+
|
103
|
+
<p> -o, --output [NAME]</p>
|
104
|
+
|
105
|
+
<p> Output file. Default is CHANGELOG.md</p>
|
106
|
+
|
107
|
+
<p> -b, --base [NAME]</p>
|
108
|
+
|
109
|
+
<p> Optional base file to append generated changes to.</p>
|
110
|
+
|
111
|
+
<p> --bugs-label [LABEL]</p>
|
112
|
+
|
113
|
+
<p> Setup custom label for bug-fixes section. Default is "<strong>Fixed bugs:</strong></p>
|
114
|
+
|
115
|
+
<p> --enhancement-label [LABEL]</p>
|
116
|
+
|
117
|
+
<p> Setup custom label for enhancements section. Default is "<strong>Implemented enhancements:</strong>"</p>
|
118
|
+
|
119
|
+
<p> --issues-label [LABEL]</p>
|
120
|
+
|
121
|
+
<p> Setup custom label for closed-issues section. Default is "<strong>Closed issues:</strong>"</p>
|
122
|
+
|
123
|
+
<p> --header-label [LABEL]</p>
|
124
|
+
|
125
|
+
<p> Setup custom header label. Default is "# Change Log"</p>
|
126
|
+
|
127
|
+
<p> --pr-label [LABEL]</p>
|
128
|
+
|
129
|
+
<p> Setup custom label for pull requests section. Default is "<strong>Merged pull requests:</strong>"</p>
|
130
|
+
|
131
|
+
<p> --[no-]issues</p>
|
132
|
+
|
133
|
+
<p> Include closed issues in changelog. Default is true</p>
|
134
|
+
|
135
|
+
<p> --[no-]issues-wo-labels</p>
|
136
|
+
|
137
|
+
<p> Include closed issues without labels in changelog. Default is true</p>
|
138
|
+
|
139
|
+
<p> --[no-]pr-wo-labels</p>
|
140
|
+
|
141
|
+
<p> Include pull requests without labels in changelog. Default is true</p>
|
142
|
+
|
143
|
+
<p> --[no-]pull-requests</p>
|
144
|
+
|
145
|
+
<p> Include pull-requests in changelog. Default is true</p>
|
146
|
+
|
147
|
+
<p> --[no-]filter-by-milestone</p>
|
148
|
+
|
149
|
+
<p> Use milestone to detect when issue was resolved. Default is true</p>
|
150
|
+
|
151
|
+
<p> --[no-]author</p>
|
152
|
+
|
153
|
+
<p> Add author of pull-request in the end. Default is true</p>
|
154
|
+
|
155
|
+
<p> --unreleased-only</p>
|
156
|
+
|
157
|
+
<p> Generate log from unreleased closed issues only.</p>
|
158
|
+
|
159
|
+
<p> --[no-]unreleased</p>
|
160
|
+
|
161
|
+
<p> Add to log unreleased closed issues. Default is true</p>
|
162
|
+
|
163
|
+
<p> --unreleased-label [label]</p>
|
164
|
+
|
165
|
+
<p> Add to log unreleased closed issues. Default is true</p>
|
166
|
+
|
167
|
+
<p> --[no-]compare-link</p>
|
168
|
+
|
169
|
+
<p> Include compare link (Full Changelog) between older version and newer version. Default is true</p>
|
170
|
+
|
171
|
+
<p> --include-labels x,y,z</p>
|
172
|
+
|
173
|
+
<p> Only issues with the specified labels will be included in the changelog.</p>
|
174
|
+
|
175
|
+
<p> --exclude-labels x,y,z</p>
|
176
|
+
|
177
|
+
<p> Issues with the specified labels will be always excluded from changelog. Default is 'duplicate,question,invalid,wontfix'</p>
|
178
|
+
|
179
|
+
<p> --bug-labels x,y,z</p>
|
180
|
+
|
181
|
+
<p> Issues with the specified labels will be always added to "Fixed bugs" section. Default is 'bug,Bug'</p>
|
182
|
+
|
183
|
+
<p> --enhancement-labels x,y,z</p>
|
184
|
+
|
185
|
+
<p> Issues with the specified labels will be always added to "Implemented enhancements" section. Default is 'enhancement,Enhancement'</p>
|
186
|
+
|
187
|
+
<p> --between-tags x,y,z</p>
|
188
|
+
|
189
|
+
<p> Change log will be filled only between specified tags</p>
|
190
|
+
|
191
|
+
<p> --exclude-tags x,y,z</p>
|
192
|
+
|
193
|
+
<p> Change log will exclude specified tags</p>
|
194
|
+
|
195
|
+
<p> --since-tag x</p>
|
196
|
+
|
197
|
+
<p> Change log will start after specified tag</p>
|
198
|
+
|
199
|
+
<p> --due-tag x</p>
|
200
|
+
|
201
|
+
<p> Change log will end before specified tag</p>
|
202
|
+
|
203
|
+
<p> --max-issues [NUMBER]</p>
|
204
|
+
|
205
|
+
<p> Max number of issues to fetch from GitHub. Default is unlimited</p>
|
206
|
+
|
207
|
+
<p> --release-url [URL]</p>
|
208
|
+
|
209
|
+
<p> The URL to point to for release links, in printf format (with the tag as variable).</p>
|
210
|
+
|
211
|
+
<p> --github-site [URL]</p>
|
212
|
+
|
213
|
+
<p> The Enterprise Github site on which your project is hosted.</p>
|
214
|
+
|
215
|
+
<p> --github-api [URL]</p>
|
216
|
+
|
217
|
+
<p> The enterprise endpoint to use for your Github API.</p>
|
218
|
+
|
219
|
+
<p> --simple-list</p>
|
220
|
+
|
221
|
+
<p> Create simple list from issues and pull requests. Default is false.</p>
|
222
|
+
|
223
|
+
<p> --future-release [RELEASE-VERSION]</p>
|
224
|
+
|
225
|
+
<p> Put the unreleased changes in the specified release number.</p>
|
226
|
+
|
227
|
+
<p> --[no-]verbose</p>
|
228
|
+
|
229
|
+
<p> Run verbosely. Default is true</p>
|
230
|
+
|
231
|
+
<p> -v, --version</p>
|
232
|
+
|
233
|
+
<p> Print version number</p>
|
234
|
+
|
235
|
+
<p> -h, --help</p>
|
236
|
+
|
237
|
+
<p> Displays Help</p>
|
238
|
+
|
239
|
+
<h2 id="EXAMPLES">EXAMPLES</h2>
|
240
|
+
|
241
|
+
<h2 id="AUTHOR">AUTHOR</h2>
|
242
|
+
|
243
|
+
<p>Written by Petr Korolev sky4winder@gmail.com</p>
|
244
|
+
|
245
|
+
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
246
|
+
|
247
|
+
<p><<a href="https://github.com/skywinder/github-changelog-generator/issues" data-bare-link="true">https://github.com/skywinder/github-changelog-generator/issues</a>></p>
|
248
|
+
|
249
|
+
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
250
|
+
|
251
|
+
<p><<a href="https://github.com/skywinder/github-changelog-generator/" data-bare-link="true">https://github.com/skywinder/github-changelog-generator/</a>></p>
|
252
|
+
|
253
|
+
|
254
|
+
<ol class='man-decor man-foot man foot'>
|
255
|
+
<li class='tl'></li>
|
256
|
+
<li class='tc'>October 2015</li>
|
257
|
+
<li class='tr'>git-generate-changelog(1)</li>
|
258
|
+
</ol>
|
259
|
+
|
260
|
+
</div>
|
261
|
+
</body>
|
262
|
+
</html>
|
@@ -0,0 +1,179 @@
|
|
1
|
+
git-generate-changelog(1) - Generate changelog from github
|
2
|
+
================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`git generate-changelog` [-h|--help] [-u|--user] [-p|--project]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Automatically generate change log from your tags, issues, labels and pull requests on GitHub.
|
11
|
+
|
12
|
+
## OPTIONS
|
13
|
+
|
14
|
+
-u, --user [USER]
|
15
|
+
|
16
|
+
Username of the owner of target GitHub repo
|
17
|
+
|
18
|
+
-p, --project [PROJECT]
|
19
|
+
|
20
|
+
Name of project on GitHub
|
21
|
+
|
22
|
+
-t, --token [TOKEN]
|
23
|
+
|
24
|
+
To make more than 50 requests per hour your GitHub token is required. You can generate it at: https://github.com/settings/tokens/new
|
25
|
+
|
26
|
+
-f, --date-format [FORMAT]
|
27
|
+
|
28
|
+
Date format. Default is %Y-%m-%d
|
29
|
+
|
30
|
+
-o, --output [NAME]
|
31
|
+
|
32
|
+
Output file. Default is CHANGELOG.md
|
33
|
+
|
34
|
+
-b, --base [NAME]
|
35
|
+
|
36
|
+
Optional base file to append generated changes to.
|
37
|
+
|
38
|
+
--bugs-label [LABEL]
|
39
|
+
|
40
|
+
Setup custom label for bug-fixes section. Default is "**Fixed bugs:**
|
41
|
+
|
42
|
+
--enhancement-label [LABEL]
|
43
|
+
|
44
|
+
Setup custom label for enhancements section. Default is "**Implemented enhancements:**"
|
45
|
+
|
46
|
+
--issues-label [LABEL]
|
47
|
+
|
48
|
+
Setup custom label for closed-issues section. Default is "**Closed issues:**"
|
49
|
+
|
50
|
+
--header-label [LABEL]
|
51
|
+
|
52
|
+
Setup custom header label. Default is "# Change Log"
|
53
|
+
|
54
|
+
--pr-label [LABEL]
|
55
|
+
|
56
|
+
Setup custom label for pull requests section. Default is "**Merged pull requests:**"
|
57
|
+
|
58
|
+
--[no-]issues
|
59
|
+
|
60
|
+
Include closed issues in changelog. Default is true
|
61
|
+
|
62
|
+
--[no-]issues-wo-labels
|
63
|
+
|
64
|
+
Include closed issues without labels in changelog. Default is true
|
65
|
+
|
66
|
+
--[no-]pr-wo-labels
|
67
|
+
|
68
|
+
Include pull requests without labels in changelog. Default is true
|
69
|
+
|
70
|
+
--[no-]pull-requests
|
71
|
+
|
72
|
+
Include pull-requests in changelog. Default is true
|
73
|
+
|
74
|
+
--[no-]filter-by-milestone
|
75
|
+
|
76
|
+
Use milestone to detect when issue was resolved. Default is true
|
77
|
+
|
78
|
+
--[no-]author
|
79
|
+
|
80
|
+
Add author of pull-request in the end. Default is true
|
81
|
+
|
82
|
+
--unreleased-only
|
83
|
+
|
84
|
+
Generate log from unreleased closed issues only.
|
85
|
+
|
86
|
+
--[no-]unreleased
|
87
|
+
|
88
|
+
Add to log unreleased closed issues. Default is true
|
89
|
+
|
90
|
+
--unreleased-label [label]
|
91
|
+
|
92
|
+
Add to log unreleased closed issues. Default is true
|
93
|
+
|
94
|
+
--[no-]compare-link
|
95
|
+
|
96
|
+
Include compare link (Full Changelog) between older version and newer version. Default is true
|
97
|
+
|
98
|
+
--include-labels x,y,z
|
99
|
+
|
100
|
+
Only issues with the specified labels will be included in the changelog.
|
101
|
+
|
102
|
+
--exclude-labels x,y,z
|
103
|
+
|
104
|
+
Issues with the specified labels will be always excluded from changelog. Default is 'duplicate,question,invalid,wontfix'
|
105
|
+
|
106
|
+
--bug-labels x,y,z
|
107
|
+
|
108
|
+
Issues with the specified labels will be always added to "Fixed bugs" section. Default is 'bug,Bug'
|
109
|
+
|
110
|
+
--enhancement-labels x,y,z
|
111
|
+
|
112
|
+
Issues with the specified labels will be always added to "Implemented enhancements" section. Default is 'enhancement,Enhancement'
|
113
|
+
|
114
|
+
--between-tags x,y,z
|
115
|
+
|
116
|
+
Change log will be filled only between specified tags
|
117
|
+
|
118
|
+
--exclude-tags x,y,z
|
119
|
+
|
120
|
+
Change log will exclude specified tags
|
121
|
+
|
122
|
+
--since-tag x
|
123
|
+
|
124
|
+
Change log will start after specified tag
|
125
|
+
|
126
|
+
--due-tag x
|
127
|
+
|
128
|
+
Change log will end before specified tag
|
129
|
+
|
130
|
+
--max-issues [NUMBER]
|
131
|
+
|
132
|
+
Max number of issues to fetch from GitHub. Default is unlimited
|
133
|
+
|
134
|
+
--release-url [URL]
|
135
|
+
|
136
|
+
The URL to point to for release links, in printf format (with the tag as variable).
|
137
|
+
|
138
|
+
--github-site [URL]
|
139
|
+
|
140
|
+
The Enterprise Github site on which your project is hosted.
|
141
|
+
|
142
|
+
--github-api [URL]
|
143
|
+
|
144
|
+
The enterprise endpoint to use for your Github API.
|
145
|
+
|
146
|
+
--simple-list
|
147
|
+
|
148
|
+
Create simple list from issues and pull requests. Default is false.
|
149
|
+
|
150
|
+
--future-release [RELEASE-VERSION]
|
151
|
+
|
152
|
+
Put the unreleased changes in the specified release number.
|
153
|
+
|
154
|
+
--[no-]verbose
|
155
|
+
|
156
|
+
Run verbosely. Default is true
|
157
|
+
|
158
|
+
-v, --version
|
159
|
+
|
160
|
+
Print version number
|
161
|
+
|
162
|
+
-h, --help
|
163
|
+
|
164
|
+
Displays Help
|
165
|
+
|
166
|
+
|
167
|
+
## EXAMPLES
|
168
|
+
|
169
|
+
## AUTHOR
|
170
|
+
|
171
|
+
Written by Petr Korolev sky4winder@gmail.com
|
172
|
+
|
173
|
+
## REPORTING BUGS
|
174
|
+
|
175
|
+
<<https://github.com/skywinder/github-changelog-generator/issues>>
|
176
|
+
|
177
|
+
## SEE ALSO
|
178
|
+
|
179
|
+
<<https://github.com/skywinder/github-changelog-generator/>>
|
@@ -0,0 +1 @@
|
|
1
|
+
exclude-labels=73a91042-da6f-11e5-9335-1040f38d7f90,7adf83b4-da6f-11e5-ae18-1040f38d7f90
|
data/spec/spec_helper.rb
CHANGED
@@ -23,11 +23,11 @@ require "coveralls"
|
|
23
23
|
module SpecHelper
|
24
24
|
end
|
25
25
|
|
26
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
]
|
26
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
27
|
+
Coveralls::SimpleCov::Formatter,
|
28
|
+
SimpleCov::Formatter::HTMLFormatter,
|
29
|
+
CodeClimate::TestReporter::Formatter
|
30
|
+
])
|
31
31
|
SimpleCov.start
|
32
32
|
|
33
33
|
require "github_changelog_generator"
|