Sha256: 8cf2d2ac3068e0fe6f84a873cacf67fde012dc58f6e603bdc92ced9eebe7bfbe
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
module Fastlane module Actions # Adds a hg tag to the current commit class HgAddTagAction < Action 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 def self.description "This will add a hg tag to the current branch" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :tag, env_name: "FL_HG_TAG_TAG", description: "Tag to create") ] end def self.author # credits to lmirosevic for original git version "sjrmanning" end def self.is_supported?(platform) true end def self.example_code [ 'hg_add_tag(tag: "1.3")' ] end def self.category :source_control end end end end
Version data entries
3 entries across 3 versions & 1 rubygems