From 1bae4ea204153bc92b8ad2e71282237eb34380a8 Mon Sep 17 00:00:00 2001 From: soundstep Date: Fri, 22 Jan 2016 15:11:12 +0000 Subject: [PATCH] filter-tags - Rename option. --- lib/github_changelog_generator/fetcher.rb | 4 ++-- lib/github_changelog_generator/parser.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/github_changelog_generator/fetcher.rb b/lib/github_changelog_generator/fetcher.rb index f0023bf..f908e1d 100644 --- a/lib/github_changelog_generator/fetcher.rb +++ b/lib/github_changelog_generator/fetcher.rb @@ -71,9 +71,9 @@ module GitHubChangelogGenerator response.each_page do |page| - if @options[:filter_tags] + if @options[:exclude_tags_filter] body_new = [] - reg = Regexp.new @options[:filter_tags] + reg = Regexp.new @options[:exclude_tags_filter] page.body.each do |tag| if !(tag.name =~ reg) body_new << tag diff --git a/lib/github_changelog_generator/parser.rb b/lib/github_changelog_generator/parser.rb index 4c79889..034bb82 100644 --- a/lib/github_changelog_generator/parser.rb +++ b/lib/github_changelog_generator/parser.rb @@ -116,8 +116,8 @@ module GitHubChangelogGenerator opts.on("--between-tags x,y,z", Array, "Change log will be filled only between specified tags") do |list| options[:between_tags] = list end - opts.on("--filter-tags [REGEX]", "Apply a regular expression on tag names so that they can be excluded, for example: --filter-tags \".*\+\d{1,}\" ") do |last| - options[:filter_tags] = last + opts.on("--exclude-tags-filter [REGEX]", "Apply a regular expression on tag names so that they can be excluded, for example: --exclude-tags-filter \".*\+\d{1,}\" ") do |last| + options[:exclude_tags_filter] = last end opts.on("--exclude-tags x,y,z", Array, "Change log will exclude specified tags") do |list| options[:exclude_tags] = list