From 4a678be5bb23fc2055c26475c7f2fc36aa8225df Mon Sep 17 00:00:00 2001 From: Phong Nguyen Date: Wed, 28 Apr 2021 17:28:52 +0700 Subject: [PATCH] trim hash in gitlog --- .../plugin/semantic_release/actions/analyze_commits.rb | 4 ++-- .../plugin/semantic_release/actions/create_release.rb | 2 +- lib/fastlane/plugin/semantic_release/version.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fastlane/plugin/semantic_release/actions/analyze_commits.rb b/lib/fastlane/plugin/semantic_release/actions/analyze_commits.rb index f51870a..eab79d2 100644 --- a/lib/fastlane/plugin/semantic_release/actions/analyze_commits.rb +++ b/lib/fastlane/plugin/semantic_release/actions/analyze_commits.rb @@ -35,7 +35,7 @@ def self.get_last_tag_hash(params) def self.get_commits_from_hash(params) commits = Helper::SemanticReleaseHelper.git_log( pretty: '%s|%b|>', - start: params[:hash], + start: params[:hash].rstrip!, debug: params[:debug] ) commits.split("|>") @@ -313,7 +313,7 @@ def self.output ['RELEASE_IS_NEXT_VERSION_HIGHER', 'True if next version is higher then last version'], ['RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH', 'True if next version is compatible with codepush'], ['RELEASE_LAST_TAG_HASH', 'Hash of commit that is tagged as a last version'], - ['RELEASE_LAST_VERSION', 'Last version number - parsed from last tag.'], + ['RELEASE_LiAST_VERSION', 'Last version number - parsed from last tag.'], ['RELEASE_NEXT_MAJOR_VERSION', 'Major number of the next version'], ['RELEASE_NEXT_MINOR_VERSION', 'Minor number of the next version'], ['RELEASE_NEXT_PATCH_VERSION', 'Patch number of the next version'], diff --git a/lib/fastlane/plugin/semantic_release/actions/create_release.rb b/lib/fastlane/plugin/semantic_release/actions/create_release.rb index ed305b2..0d5f4b6 100644 --- a/lib/fastlane/plugin/semantic_release/actions/create_release.rb +++ b/lib/fastlane/plugin/semantic_release/actions/create_release.rb @@ -84,7 +84,7 @@ def self.available_options ), FastlaneCore::ConfigItem.new( key: :assets, - description: "Release assets", + description: "Release assets (apk link download,...)", type:Hash, optional: true ) diff --git a/lib/fastlane/plugin/semantic_release/version.rb b/lib/fastlane/plugin/semantic_release/version.rb index 4526262..701b376 100644 --- a/lib/fastlane/plugin/semantic_release/version.rb +++ b/lib/fastlane/plugin/semantic_release/version.rb @@ -1 +1 @@ -module Fastlane module SemanticReleaseWorkflow VERSION = "1.0.6" end end +module Fastlane module SemanticReleaseWorkflow VERSION = "1.0.7" end end