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.66.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.65.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.64.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.63.1 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.63.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.62.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.61.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.60.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.59.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.58.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.57.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.56.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.55.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.54.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.53.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.52.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.51.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.50.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.49.0 lib/fastlane/actions/hg_add_tag.rb
fastlane-1.48.0 lib/fastlane/actions/hg_add_tag.rb