Sha256: 3aeba49ccfe75454a0a910e8596ee70be102778ec14d947b34b9524ea4655be0

Contents?: true

Size: 938 Bytes

Versions: 29

Compression:

Stored size: 938 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      RELEASE_NOTES = :RELEASE_NOTES
    end

    class ReleaseNotesAction < Action
      def self.run(config)
        current_tag = sh "git describe --exact-match --tags HEAD"
        tag_info = sh "git cat-file -p #{current_tag}"
        release_notes = tag_info.split("\n").drop(5).join("\n")
        UI.success "Extracted release notes:\n#{release_notes}"
        Actions.lane_context[SharedValues::RELEASE_NOTES] = release_notes
        ENV[SharedValues::RELEASE_NOTES.to_s] = release_notes
        release_notes
      end

      def self.description
        "Extracts release notes from git tag messages"
      end

      def self.output
        [
          ['RELEASE_NOTES', 'Release notes extracted from git tag']
        ]
      end

      def self.author
        "Piotrek Dubiel"
      end

      def self.is_supported?(platform)
        true
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fastlane-plugin-polidea-2.1.1.pre lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-2.1.0 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-2.0.0 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-1.0.0 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-1.0.0.pre lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.4 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.3 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.2 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.1 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.0 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.0.pre.1 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.6.0.pre lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.5.0 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.4.5 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.4.4 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.4.3 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.4.2 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.4.1 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.4.0 lib/fastlane/plugin/polidea/actions/release_notes.rb
fastlane-plugin-polidea-0.3.5 lib/fastlane/plugin/polidea/actions/release_notes.rb