From 42c377d285444b95e1d542d6f8b4861b1394ccc3 Mon Sep 17 00:00:00 2001 From: Andrew Waage Date: Mon, 6 Jun 2016 12:53:51 -0700 Subject: [PATCH] fixed one bug in filtering excluded tags --- .../generator/generator_tags.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/github_changelog_generator/generator/generator_tags.rb b/lib/github_changelog_generator/generator/generator_tags.rb index 385f236..312c221 100644 --- a/lib/github_changelog_generator/generator/generator_tags.rb +++ b/lib/github_changelog_generator/generator/generator_tags.rb @@ -6,12 +6,14 @@ module GitHubChangelogGenerator detect_since_tag detect_due_tag - all_tags = @fetcher.get_all_tags + all_tags = @fetcher.get_all_tags + included_tags = filter_excluded_tags(all_tags) + fetch_tags_dates(all_tags) # Creates a Hash @tag_times_hash - sorted_tags = sort_tags_by_date(all_tags) + sorted_tags = sort_tags_by_date(included_tags) @filtered_tags = get_filtered_tags(sorted_tags) - @tag_section_mapping = build_tag_section_mapping(@filtered_tags, all_tags) + @tag_section_mapping = build_tag_section_mapping(@filtered_tags, sorted_tags) @filtered_tags end @@ -99,7 +101,6 @@ module GitHubChangelogGenerator filtered_tags = filter_since_tag(all_tags) filtered_tags = filter_due_tag(filtered_tags) filtered_tags = filter_between_tags(filtered_tags) - filter_excluded_tags(filtered_tags) end # @param [Array] all_tags all tags