Sha256: 4959682f50240d44f57e0916f056ed44c5f5517032064e69563601d96323acb7

Contents?: true

Size: 882 Bytes

Versions: 91

Compression:

Stored size: 882 Bytes

Contents

module Fastlane
  module Actions
    # Adds a hg tag to the current commit
    class HgAddTagAction < Action
      def self.run(options)
        tag = options[:tag]

        Helper.log.info "Adding mercurial tag '#{tag}' 🎯."

        command = "hg tag \"#{tag}\""
        return command if Helper.is_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
    end
  end
end

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
fastlane-1.28.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.27.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.26.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.25.1 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.25.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.24.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.23.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.22.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.21.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.20.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.19.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.18.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.17.1 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.17.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.16.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.15.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.14.1 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.14.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.13.1 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.13.0 lib/fastlane/actions/hg_add_tag.rb