class Fastlane::Actions::HgAddTagAction
Adds a hg tag to the current commit
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 20 def self.available_options [ FastlaneCore::ConfigItem.new(key: :tag, env_name: "FL_HG_TAG_TAG", description: "Tag to create") ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 43 def self.category :source_control end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 16 def self.description "This will add a hg tag to the current branch" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 37 def self.example_code [ 'hg_add_tag(tag: "1.3")' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 33 def self.is_supported?(platform) true end
run(options)
click to toggle source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 5 def self.run(options) tag = options[:tag] UI.message("Adding mercurial tag '#{tag}' 🎯.") command = "hg tag \"#{tag}\"" return command if Helper.test? Actions.sh(command) end