class Fastlane::Actions::ReleaseNotesAction
Public Class Methods
description()
click to toggle source
# File lib/fastlane/plugin/polidea/actions/release_notes.rb, line 23 def self.description "Extracts release notes from git tag message" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/polidea/actions/release_notes.rb, line 37 def self.is_supported?(platform) true end
output()
click to toggle source
# File lib/fastlane/plugin/polidea/actions/release_notes.rb, line 27 def self.output [ ['RELEASE_NOTES', 'Release notes extracted from git tag'] ] end
run(config)
click to toggle source
# File lib/fastlane/plugin/polidea/actions/release_notes.rb, line 8 def self.run(config) Fastlane::Polidea.session.action_launched("release_notes", 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 Fastlane::Polidea.session.action_completed("release_notes") release_notes end