Class: Fastlane::Helper::ChangelogGeneratorHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/changelog_generator/helper/changelog_generator_helper.rb

Class Method Summary collapse

Class Method Details

.git_tags(limit = nil) ⇒ Object



4
5
6
7
8
# 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