px_github_changelog_generator 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +9 -0
  3. data/README.md +357 -0
  4. data/Rakefile +19 -0
  5. data/bin/git-generate-changelog +5 -0
  6. data/bin/github_changelog_generator +5 -0
  7. data/lib/github_changelog_generator/argv_parser.rb +225 -0
  8. data/lib/github_changelog_generator/file_parser_chooser.rb +27 -0
  9. data/lib/github_changelog_generator/generator/entry.rb +218 -0
  10. data/lib/github_changelog_generator/generator/generator.rb +177 -0
  11. data/lib/github_changelog_generator/generator/generator_fetcher.rb +202 -0
  12. data/lib/github_changelog_generator/generator/generator_processor.rb +237 -0
  13. data/lib/github_changelog_generator/generator/generator_tags.rb +210 -0
  14. data/lib/github_changelog_generator/generator/section.rb +129 -0
  15. data/lib/github_changelog_generator/helper.rb +37 -0
  16. data/lib/github_changelog_generator/octo_fetcher.rb +535 -0
  17. data/lib/github_changelog_generator/options.rb +159 -0
  18. data/lib/github_changelog_generator/parser.rb +89 -0
  19. data/lib/github_changelog_generator/parser_file.rb +101 -0
  20. data/lib/github_changelog_generator/reader.rb +88 -0
  21. data/lib/github_changelog_generator/ssl_certs/cacert.pem +3138 -0
  22. data/lib/github_changelog_generator/task.rb +68 -0
  23. data/lib/github_changelog_generator/version.rb +5 -0
  24. data/lib/github_changelog_generator.rb +49 -0
  25. data/man/git-generate-changelog.1 +393 -0
  26. data/man/git-generate-changelog.1.html +359 -0
  27. data/man/git-generate-changelog.html +270 -0
  28. data/man/git-generate-changelog.md +274 -0
  29. data/spec/files/angular.js.md +9395 -0
  30. data/spec/files/bundler.md +1911 -0
  31. data/spec/files/config_example +5 -0
  32. data/spec/files/github-changelog-generator.md +305 -0
  33. data/spec/github_changelog_generator_spec.rb +32 -0
  34. data/spec/install_gem_in_bundler.gemfile +5 -0
  35. data/spec/spec_helper.rb +74 -0
  36. data/spec/unit/generator/entry_spec.rb +766 -0
  37. data/spec/unit/generator/generator_processor_spec.rb +203 -0
  38. data/spec/unit/generator/generator_spec.rb +47 -0
  39. data/spec/unit/generator/generator_tags_spec.rb +337 -0
  40. data/spec/unit/generator/section_spec.rb +43 -0
  41. data/spec/unit/octo_fetcher_spec.rb +590 -0
  42. data/spec/unit/options_spec.rb +67 -0
  43. data/spec/unit/parser_file_spec.rb +94 -0
  44. data/spec/unit/parser_spec.rb +54 -0
  45. data/spec/unit/reader_spec.rb +120 -0
  46. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_commits/when_API_is_valid/returns_commits.json +1 -0
  47. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_commits_before/when_API_is_valid/returns_commits.json +1 -0
  48. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid/returns_issue_with_proper_key/values.json +1 -0
  49. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid/returns_issues.json +1 -0
  50. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid/returns_issues_with_labels.json +1 -0
  51. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid/returns_pull_request_with_proper_key/values.json +1 -0
  52. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid/returns_pull_requests_with_labels.json +1 -0
  53. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid.json +1 -0
  54. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_pull_requests/when_API_call_is_valid/returns_correct_pull_request_keys.json +1 -0
  55. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_pull_requests/when_API_call_is_valid/returns_pull_requests.json +1 -0
  56. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_pull_requests/when_API_call_is_valid.json +1 -0
  57. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_commit/when_API_call_is_valid/returns_commit.json +1 -0
  58. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_commit/when_API_call_is_valid.json +1 -0
  59. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_date_of_tag/when_API_call_is_valid/returns_date.json +1 -0
  60. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_date_of_tag/when_API_call_is_valid.json +1 -0
  61. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_events_async/when_API_call_is_valid/populates_issues.json +1 -0
  62. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_events_async/when_API_call_is_valid.json +1 -0
  63. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_github_fetch_tags/when_API_call_is_valid/should_return_tags.json +1 -0
  64. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_github_fetch_tags/when_API_call_is_valid/should_return_tags_count.json +1 -0
  65. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_github_fetch_tags/when_API_call_is_valid.json +1 -0
  66. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_github_fetch_tags/when_wrong_token_provided/should_raise_Unauthorized_error.json +1 -0
  67. data/spec/vcr/GitHubChangelogGenerator_OctoFetcher/_github_fetch_tags/when_wrong_token_provided.json +1 -0
  68. metadata +250 -0
@@ -0,0 +1,274 @@
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 changelog 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. To print to STDOUT instead, use blank as path. Default is CHANGELOG.md.
33
+
34
+ -b, --base NAME
35
+
36
+ Optional base file to append generated changes to. Default is HISTORY.md.
37
+
38
+ --summary-label LABEL
39
+
40
+ Set up custom label for the release summary section. Default is "".
41
+
42
+ --breaking-label LABEL
43
+
44
+ Set up custom label for breaking changes section. Default is "**Breaking changes:**".
45
+
46
+ --enhancement-label LABEL
47
+
48
+ Set up custom label for enhancements section. Default is "**Implemented enhancements:**".
49
+
50
+ --bugs-label LABEL
51
+
52
+ Set up custom label for bug-fixes section. Default is "**Fixed bugs:**".
53
+
54
+ --deprecated-label LABEL
55
+
56
+ Set up custom label for deprecated section. Default is "**Deprecated:**".
57
+
58
+ --removed-label LABEL
59
+
60
+ Set up custom label for removed section. Default is "**Removed:**".
61
+
62
+ --security-label LABEL
63
+
64
+ Set up custom label for security section. Default is "**Security:**".
65
+
66
+ --issues-label LABEL
67
+
68
+ Set up custom label for closed-issues section. Default is "**Closed issues:**".
69
+
70
+ --header-label LABEL
71
+
72
+ Set up custom header label. Default is "# Changelog".
73
+
74
+ --configure-sections HASH, STRING
75
+
76
+ Define your own set of sections which overrides all default sections.
77
+
78
+ --add-sections HASH, STRING
79
+
80
+ Add new sections but keep the default sections.
81
+
82
+ --front-matter JSON
83
+
84
+ Add YAML front matter. Formatted as JSON because it's easier to add on the command line.
85
+
86
+ --pr-label LABEL
87
+
88
+ Set up custom label for pull requests section. Default is "**Merged pull requests:**".
89
+
90
+ --[no-]issues
91
+
92
+ Include closed issues in changelog. Default is true.
93
+
94
+ --[no-]issues-wo-labels
95
+
96
+ Include closed issues without labels in changelog. Default is true.
97
+
98
+ --[no-]pr-wo-labels
99
+
100
+ Include pull requests without labels in changelog. Default is true.
101
+
102
+ --[no-]pull-requests
103
+
104
+ Include pull-requests in changelog. Default is true.
105
+
106
+ --[no-]filter-by-milestone
107
+
108
+ Use milestone to detect when issue was resolved. Default is true.
109
+
110
+ --[no-]issues-of-open-milestones
111
+
112
+ Include issues of open milestones. Default is true.
113
+
114
+ --[no-]author
115
+
116
+ Add author of pull request at the end. Default is true.
117
+
118
+ --usernames-as-github-logins
119
+
120
+ Use GitHub tags instead of Markdown links for the author of an issue or pull-request.
121
+
122
+ --unreleased-only
123
+
124
+ Generate log from unreleased closed issues only.
125
+
126
+ --[no-]unreleased
127
+
128
+ Add to log unreleased closed issues. Default is true.
129
+
130
+ --unreleased-label LABEL
131
+
132
+ Set up custom label for unreleased closed issues section. Default is "**Unreleased:**".
133
+
134
+ --[no-]compare-link
135
+
136
+ Include compare link (Full Changelog) between older version and newer version. Default is true.
137
+
138
+ --include-labels x,y,z
139
+
140
+ Of the labeled issues, only include the ones with the specified labels.
141
+
142
+ --exclude-labels x,y,z
143
+
144
+ Issues with the specified labels will be excluded from changelog. Default is 'duplicate,question,invalid,wontfix'.
145
+
146
+ --summary-labels x,y,z
147
+
148
+ Issues with these labels will be added to a new section, called "Release Summary". The section display only body of issues. Default is 'Release summary,release-summary,Summary,summary'.
149
+
150
+ --breaking-labels x,y,z
151
+
152
+ Issues with these labels will be added to a new section, called "Breaking changes". Default is 'backwards-incompatible,breaking'.
153
+
154
+ --enhancement-labels x,y,z
155
+
156
+ Issues with the specified labels will be added to "Implemented enhancements" section. Default is 'enhancement,Enhancement'.
157
+
158
+ --bug-labels x,y,z
159
+
160
+ Issues with the specified labels will be added to "Fixed bugs" section. Default is 'bug,Bug'.
161
+
162
+ --deprecated-labels x,y,z
163
+
164
+ Issues with the specified labels will be added to a section called "Deprecated". Default is 'deprecated,Deprecated'.
165
+
166
+ --removed-labels x,y,z
167
+
168
+ Issues with the specified labels will be added to a section called "Removed". Default is 'removed,Removed'.
169
+
170
+ --security-labels x,y,z
171
+
172
+ Issues with the specified labels will be added to a section called "Security fixes". Default is 'security,Security'.
173
+
174
+ --issue-line-labels x,y,z
175
+
176
+ The specified labels will be shown in brackets next to each matching issue. Use "ALL" to show all labels. Default is [].
177
+
178
+ --exclude-tags x,y,z
179
+
180
+ Changelog will exclude specified tags.
181
+
182
+ --exclude-tags-regex REGEX
183
+
184
+ Apply a regular expression on tag names so that they can be excluded, for example: --exclude-tags-regex ".*\+\d{1,}".
185
+
186
+ --since-tag x
187
+
188
+ Changelog will start after specified tag.
189
+
190
+ --due-tag x
191
+
192
+ Changelog will end before specified tag.
193
+
194
+ --since-commit x
195
+
196
+ Fetch only commits after this time. eg. "2017-01-01 10:00:00"
197
+
198
+ --max-issues NUMBER
199
+
200
+ Maximum number of issues to fetch from GitHub. Default is unlimited.
201
+
202
+ --release-url URL
203
+
204
+ The URL to point to for release links, in printf format (with the tag as variable).
205
+
206
+ --github-site URL
207
+
208
+ The Enterprise GitHub site where your project is hosted.
209
+
210
+ --github-api URL
211
+
212
+ The enterprise endpoint to use for your GitHub API.
213
+
214
+ --simple-list
215
+
216
+ Create a simple list from issues and pull requests. Default is false.
217
+
218
+ --future-release RELEASE-VERSION
219
+
220
+ Put the unreleased changes in the specified release number.
221
+
222
+ --release-branch RELEASE-BRANCH
223
+
224
+ Limit pull requests to the release branch, such as master or release.
225
+
226
+ --http-cache
227
+
228
+ Use HTTP Cache to cache GitHub API requests (useful for large repos). Default is true.
229
+
230
+ --[no-]cache-file CACHE-FILE
231
+
232
+ Filename to use for cache. Default is github-changelog-http-cache in a temporary directory.
233
+
234
+ --cache-log CACHE-LOG
235
+
236
+ Filename to use for cache log. Default is github-changelog-logger.log in a temporary directory.
237
+
238
+ --ssl-ca-file PATH
239
+
240
+ Path to cacert.pem file. Default is a bundled lib/github_changelog_generator/ssl_certs/cacert.pem. Respects SSL_CA_PATH.
241
+
242
+ --require file1.rb,file2.rb
243
+
244
+ Paths to Ruby file(s) to require before generating changelog.
245
+
246
+ --[no-]verbose
247
+
248
+ Run verbosely. Default is true.
249
+
250
+ -v, --version
251
+
252
+ Print version number.
253
+
254
+ -h, --help
255
+
256
+ Displays Help.
257
+
258
+ ## REBASED COMMITS
259
+
260
+ GitHub pull requests that have been merged whose merge commit SHA has been modified through rebasing, cherry picking, or some other method may be tracked via a special comment on GitHub. Git commit SHAs found in comments on pull requests matching the regular expression `/rebased commit: ([0-9a-f]{40})/i` will be used in place of the original merge SHA when being added to the changelog.
261
+
262
+ ## EXAMPLES
263
+
264
+ ## AUTHOR
265
+
266
+ Written by Petr Korolev sky4winder@gmail.com
267
+
268
+ ## REPORTING BUGS
269
+
270
+ &lt;<https://github.com/github-changelog-generator/github-changelog-generator/issues>&gt;
271
+
272
+ ## SEE ALSO
273
+
274
+ &lt;<https://github.com/github-changelog-generator/github-changelog-generator/>&gt;