Skip to content

Commit ac740bd

Browse files
authored
Merge pull request #461 from wordpress-mobile/add/branch-information-to-complete-code-freeze-error
Add the branch information to the 'this is not a release branch' error
2 parents 805674d + c2f45fb commit ac740bd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ _None_
2020

2121
- Add "Mobile Secrets" to `configure_update` current branch message to clarify which repo it's referring to. [#455]
2222
- `buildkite_trigger_build` now prints the web URL of the newly scheduled build, to allow you to easily open it via cmd-click. [#460]
23+
- Add the branch information to the 'This is not a release branch' error that's thrown from complete code freeze lane. [#461]
2324

2425
## 7.0.0
2526

lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.run(params)
77
require_relative '../../helper/android/android_version_helper'
88
require_relative '../../helper/android/android_git_helper'
99

10-
UI.user_error!('This is not a release branch. Abort.') unless other_action.git_branch.start_with?('release/')
10+
UI.user_error!("Current branch - '#{other_action.git_branch}' - is not a release branch. Abort.") unless other_action.git_branch.start_with?('release/')
1111

1212
version = Fastlane::Helper::Android::VersionHelper.get_public_version
1313
message = "Completing code freeze for: #{version}\n"

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_completecodefreeze_prechecks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.run(params)
77
require_relative '../../helper/ios/ios_version_helper'
88
require_relative '../../helper/ios/ios_git_helper'
99

10-
UI.user_error!('This is not a release branch. Abort.') unless other_action.git_branch.start_with?('release/')
10+
UI.user_error!("Current branch - '#{other_action.git_branch}' - is not a release branch. Abort.") unless other_action.git_branch.start_with?('release/')
1111

1212
version = Fastlane::Helper::Ios::VersionHelper.get_public_version
1313
message = "Completing code freeze for: #{version}\n"

0 commit comments

Comments
 (0)