@@ -489,7 +489,7 @@ def validate_semver(version)
489489
490490 context "when the release branch has no changes since the latest tag" do
491491 it "returns false and shows a message" do
492- allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git tag --sort=-v:refname | grep '+#{ platform } ' | head -n 1" ) . and_return ( "#{ version } \n " )
492+ allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git tag --sort=-creatordate | grep '+#{ platform } ' | head -n 1" ) . and_return ( "#{ version } \n " )
493493 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git rev-parse \" #{ version } \" ^{}" ) . and_return ( "abc123\n " )
494494 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( 'git rev-parse "origin/release_branch"' ) . and_return ( "abc123\n " )
495495
@@ -500,7 +500,7 @@ def validate_semver(version)
500500
501501 context "when the release branch has changes since the latest tag" do
502502 it "returns true" do
503- allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git tag --sort=-v:refname | grep '+#{ platform } ' | head -n 1" ) . and_return ( "#{ version } \n " )
503+ allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git tag --sort=-creatordate | grep '+#{ platform } ' | head -n 1" ) . and_return ( "#{ version } \n " )
504504 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git rev-parse \" #{ version } \" ^{}" ) . and_return ( "abc123\n " )
505505 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( 'git rev-parse "origin/release_branch"' ) . and_return ( "def456\n " )
506506 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git diff --name-only \" #{ version } \" ..\" origin/release_branch\" " ) . and_return ( "app/file1.rb\n app/file2.rb\n " )
@@ -510,7 +510,7 @@ def validate_semver(version)
510510
511511 context "when changes are only in scripts or workflows" do
512512 it "returns false" do
513- allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git tag --sort=-v:refname | grep '+#{ platform } ' | head -n 1" ) . and_return ( "#{ version } \n " )
513+ allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git tag --sort=-creatordate | grep '+#{ platform } ' | head -n 1" ) . and_return ( "#{ version } \n " )
514514 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git rev-parse \" #{ version } \" ^{}" ) . and_return ( "abc123\n " )
515515 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( 'git rev-parse "origin/release_branch"' ) . and_return ( "def456\n " )
516516 allow ( Fastlane ::Helper ::GitHelper ) . to receive ( :` ) . with ( "git diff --name-only \" #{ version } \" ..\" origin/release_branch\" " ) . and_return ( ".github/workflows/workflow.yml\n scripts/deploy.sh\n fastlane/Fastfile\n " )
0 commit comments