class Fastlane::Actions::HgAddTagAction
Adds a hg tag to the current commit
Public Class Methods
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
Source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 43 def self.category :source_control end
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
Source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 37 def self.example_code [ 'hg_add_tag(tag: "1.3")' ] end
Source
# File fastlane/lib/fastlane/actions/hg_add_tag.rb, line 33 def self.is_supported?(platform) true end
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