filter-tags - Rename option.
This commit is contained in:
parent
a676650993
commit
1bae4ea204
|
@ -71,9 +71,9 @@ module GitHubChangelogGenerator
|
||||||
|
|
||||||
response.each_page do |page|
|
response.each_page do |page|
|
||||||
|
|
||||||
if @options[:filter_tags]
|
if @options[:exclude_tags_filter]
|
||||||
body_new = []
|
body_new = []
|
||||||
reg = Regexp.new @options[:filter_tags]
|
reg = Regexp.new @options[:exclude_tags_filter]
|
||||||
page.body.each do |tag|
|
page.body.each do |tag|
|
||||||
if !(tag.name =~ reg)
|
if !(tag.name =~ reg)
|
||||||
body_new << tag
|
body_new << tag
|
||||||
|
|
|
@ -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|
|
opts.on("--between-tags x,y,z", Array, "Change log will be filled only between specified tags") do |list|
|
||||||
options[:between_tags] = list
|
options[:between_tags] = list
|
||||||
end
|
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|
|
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[:filter_tags] = last
|
options[:exclude_tags_filter] = last
|
||||||
end
|
end
|
||||||
opts.on("--exclude-tags x,y,z", Array, "Change log will exclude specified tags") do |list|
|
opts.on("--exclude-tags x,y,z", Array, "Change log will exclude specified tags") do |list|
|
||||||
options[:exclude_tags] = list
|
options[:exclude_tags] = list
|
||||||
|
|
Loading…
Reference in New Issue
Block a user