Sha256: 9664f5ead1dbd9e0c405e16df16ada7cbfbca59c5be938eedb6b014b6fb9a993

Contents?: true

Size: 1 KB

Versions: 633

Compression:

Stored size: 1 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

633 entries across 633 versions & 5 rubygems

Version Path
fastlane-2.96.0.beta.20180517050058 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180516050022 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180515050025 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180514050029 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180513050015 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180512050121 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180511050050 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.96.0.beta.20180510050112 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180509050014 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180508050130 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180507050125 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180506050030 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180505050019 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180504050050 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180503050136 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.95.0.beta.20180502050125 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.94.0 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.94.0.beta.20180501050030 fastlane/lib/fastlane/actions/hg_add_tag.rb
fastlane-2.94.0.beta.20180430050033 fastlane/lib/fastlane/actions/hg_add_tag.rb