Commit Graph

95 Commits

Author SHA1 Message Date
Tom Duffield ee5a507f76 Filter excluded tags within the section map builder
Because we need might need excluded tags to build compare links, the
section map generator needs to have access to those tags. But, we don't
want excluded tags to have section headers. So instead, we'll create
another copy of the list that doesn't have tags excluded.

Signed-off-by: Tom Duffield <tom@chef.io>
2017-07-27 10:37:38 -07:00
Tom Duffield 66177c58e3 DRY up the tests and address Rubocop feedback
Signed-off-by: Tom Duffield <tom@chef.io>
2017-07-27 10:37:32 -07:00
Tom Duffield d6c26ef4a9 Generate mapping that will match expectations
This change neccesitated changing the behavior or the
`filter_since_tag`. Since we want our compare links to include the since
tag, we need to keep that tag in the filtered list. Instead, we detect
that the tag is the since tag and filter it out. This will prevent the
since_tag header from being duplicated when pulling from a base.

The same goes for the first tag listed in between_tags. We don't want an
empty section header for this.

Signed-off-by: Tom Duffield <tom@chef.io>
2017-07-27 10:37:26 -07:00
Ian Roberts 4c26bbd7c0 Add newline after version (#548)
Add newline after version name and Full Changelog link
2017-07-19 15:26:40 +02:00
Lucas Huang b21e7eaaf7 Update generator_generation.rb (#542)
Fix the syntax so `credit_line` is recognizable as a variable. #541
2017-06-28 16:55:42 +02:00
Lucas Huang d0e7593e98 Fix the syntax ambiguity on credit-line-bug (#537)
* fix a syntax ambiguity
2017-06-27 19:45:57 +02:00
Lucas Huang fb7e21f9f8 Credit line bug (#535)
* Fix a bug that generates multiple credit lines
2017-06-27 07:45:59 +02:00
Olle Jonsson 6ad5aa106d Bug: require ActiveSupport core_ext blank (#520) 2017-05-25 14:07:34 +02:00
Lucas Huang e9ee9556ce remove --between_tags option (#501) 2017-05-25 00:29:31 +02:00
Olle Jonsson 874c23c64f Chore: Rubocop 0.49.0 (#516)
* Rubocoping
2017-05-25 00:11:02 +02:00
Thorsten d551c3a198 Fixed issue #442 - broken issue-line-labels in log. (#443) 2016-11-05 08:44:28 +01:00
Thorsten Eckel 014da21bf5 Fixed bug: Last entries get lost. 2016-11-04 20:18:09 +01:00
Thorsten Eckel 83dcb3cdf9 Fixed issue #304 - entries of previous tags are included. 2016-11-04 19:51:58 +01:00
aih 1fd341d9bf Add option to show selected labels in the issue line: --issue-line-labels 2016-10-26 09:50:54 -07:00
Olle Jonsson 8632bcf254 On GitHub MAX_THREAD_NUMBER is 25 2016-10-06 00:23:11 +02:00
Olle Jonsson 5ae7027425 Fix: Turn Sawyer method into String-keyed hash access (#429) 2016-10-01 19:46:52 +02:00
Olle Jonsson bd024f6b63 Style: Use attr_reader for options
- prefer parentheses
2016-09-29 23:09:05 +02:00
Olle Jonsson e23f2ff7e1 Typo: variable rename 2016-09-29 23:09:05 +02:00
Olle Jonsson ba825488bd Typo, renamed var 2016-09-29 23:09:05 +02:00
Olle Jonsson d8b34169a3 Linting 2016-09-29 23:09:04 +02:00
Olle Jonsson 1177f09ca5 Drop Hashie dependency 2016-09-29 23:09:04 +02:00
Andrew Waage 71c337cdcf fixed a bug in fetching tags 2016-09-29 23:09:04 +02:00
Andrew Waage 42c377d285 fixed one bug in filtering excluded tags 2016-09-29 23:09:04 +02:00
Andrew Waage b79d672424 fixed 1 bug to work with octokit api 2016-09-29 23:09:04 +02:00
Andrew Waage dbcc1cb98d merged in the tag fixes 2016-09-29 23:09:04 +02:00
Andrew Waage ef9867c122 fixing rubocop and removing original fetcher 2016-09-29 23:09:04 +02:00
Andrew Waage 0e948fb125 max thread 1 2016-09-29 23:09:04 +02:00
Andrew Waage 2cafff7abb changing max threads to 4 2016-09-29 23:09:04 +02:00
Andrew Waage 10cf2a0f04 minor clean up 2016-09-29 23:09:04 +02:00
Andrew Waage a178822c83 fixed some handling of hashes 2016-09-29 23:09:04 +02:00
Andrew Waage 7f7a7f957c using strings instead of symbols 2016-09-29 23:09:04 +02:00
Andrew Waage 2347cc4220 added specs for the new octo_fetcher. Also had to refactor a bit to deal with hashes and arrays instead of objects 2016-09-29 23:09:04 +02:00
Andrew Waage d7b88a521a changed the format of how dates are fetched from commit 2016-09-29 23:09:03 +02:00
Andrew Waage 53377388ee clean up 2016-09-29 23:09:03 +02:00
Andrew Waage a8e6c5406e created a new fetcher with octokit. functionality should remain same 2016-09-29 23:09:03 +02:00
Olle Jonsson 7f8131d5cd Lint: avoid multi-line ternary operator 2016-09-22 19:17:23 +02:00
Olle Jonsson 04215618a2 Lint: frozen-string-literal 2016-09-22 19:16:29 +02:00
Olle Jonsson 7e77fd6c57 Drop all local color method calls
- The central logging method decides the color of the output
  - pass Rubocop complaints
2016-09-01 11:50:17 -07:00
James Casey f647dc0d98 Change to use Rainbow instead of colorize
colorize is licensed under GPL-2 which conflicts with the MIT license of
github_changelog_generator.  This changes all usage of colorize to
rainbow which does have a compatible license (MIT)
2016-08-31 14:27:39 -07:00
Olle Jonsson 3962474e9f usernames_as_github_logins: Use option 2016-07-02 17:20:31 +02:00
phase 0e671a96da Remove trailing whitespace 2016-07-02 17:10:56 +02:00
phase 4c737c9373 Extract username tagging 2016-07-02 17:10:56 +02:00
phase df31f98ce3 Use GitHub tags to reference GitHub users
This will use @tags to notify the contributor that their contribution is in the changelog.

As discussed in https://github.com/github/linguist/pull/2698#issuecomment-150887871
2016-07-02 17:10:56 +02:00
Olle Jonsson 9c6068f026 Avoid nil bug in detect_since_tag 2016-04-18 16:53:25 +02:00
Petr Korolev 519ca91cd7 Merge pull request #320 from ITV/filter-tags
Added tag exclusion with a filter (string or regex)
2016-03-28 13:04:06 +03:00
Adam 61ec650801 refactor 2016-03-24 12:40:42 +00:00
Adam 6a0ade1194 refactor 2016-03-24 12:22:33 +00:00
Adam dd149d7ad9 implement #filter_excluded_tags_regex with regex exclude_tags 2016-03-24 11:59:20 +00:00
Olle Jonsson 87b9962a8d Refactoring: introduce local, return early
- use #reject
  - add basic spec around it
2016-02-23 23:17:37 +01:00
Petr Korolev fa0267b586 Rubocop fixes 2016-02-23 12:25:55 +02:00