class Fastlane::Actions::LastGitTagAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 16 def self.available_options [ FastlaneCore::ConfigItem.new(key: :pattern, description: "Pattern to filter tags when looking for last one. Limit tags to ones matching given shell glob. If pattern lacks ?, *, or [, * at the end is implied", default_value: nil, optional: true) ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 55 def self.category :source_control end
description()
click to toggle source
@!group Documentation
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 12 def self.description "Get the most recent git tag" end
details()
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 41 def self.details [ "If you are using this action on a **shallow clone**, *the default with some CI systems like Bamboo*, you need to ensure that you have also pulled all the git tags appropriately. Assuming your git repo has the correct remote set you can issue `sh('git fetch --tags')`.", "Pattern parameter allows you to filter to a subset of tags." ].join("\n") end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 48 def self.example_code [ 'last_git_tag', 'last_git_tag(pattern: "release/v1.0/")' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 37 def self.is_supported?(platform) true end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 25 def self.output [] end
return_type()
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 29 def self.return_type :string end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/last_git_tag.rb, line 4 def self.run(params) Actions.last_git_tag_name(true, params[:pattern]) end