class Fastlane::Helper::ChangelogGeneratorHelper

Public Class Methods

git_tags(limit = nil) click to toggle source
# File lib/fastlane/plugin/changelog_generator/helper/changelog_generator_helper.rb, line 4
def self.git_tags(limit = nil)
  tags = `git tag | xargs -I@ git log --format=format:"%ai @%n" -1 @ | sort | awk '{print $4}'`.split("\n").reverse
  tags = tags.take(limit) if limit
  tags
end