Merge pull request #320 from ITV/filter-tags

Added tag exclusion with a filter (string or regex)
This commit is contained in:
Petr Korolev
2016-03-28 13:04:06 +03:00
3 changed files with 38 additions and 11 deletions
+3
View File
@@ -122,6 +122,9 @@ module GitHubChangelogGenerator
opts.on("--exclude-tags x,y,z", Array, "Change log will exclude specified tags") do |list|
options[:exclude_tags] = list
end
opts.on("--exclude-tags-regex [REGEX]", "Apply a regular expression on tag names so that they can be excluded, for example: --exclude-tags-regex \".*\+\d{1,}\" ") do |last|
options[:exclude_tags_regex] = last
end
opts.on("--since-tag x", "Change log will start after specified tag") do |v|
options[:since_tag] = v
end