Skip to content

Commit f348207

Browse files
authored
Merge pull request #471 from wordpress-mobile/deprecate/ios_final_tag_and_ios_clear_intermediate_tags
Deprecate ios_final_tag and ios_clear_intermediate_tags
2 parents 3d55435 + 19259b7 commit f348207

3 files changed

Lines changed: 29 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ _None_
3838
- Adds `ignore_pipeline_branch_filters=true` parameter to the API call triggering a Buildkite build [#468]
3939
- Replace all instances of `is_string` with `type` [#469]
4040
- Use `git_branch_name_using_HEAD` instead of `git_branch` so that the return value is not modified by environment variables. This has no impact to our current release flow, that's why it's not in "Breaking changes" section. [#463]
41+
- Deprecate `ios_clear_intermediate_tags` & `ios_final_tag` actions. [#471]
4142

4243
## 7.0.0
4344

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module Fastlane
22
module Actions
33
class IosClearIntermediateTagsAction < Action
44
def self.run(params)
5+
return unless UI.confirm("#{deprecated_notes} Would you like to continue with the action?")
6+
57
UI.message("Deleting tags for version: #{params[:version]}")
68

79
require_relative '../../helper/git_helper'
@@ -26,11 +28,11 @@ def self.run(params)
2628
#####################################################
2729

2830
def self.description
29-
'Cleans all the intermediate tags for the given version'
31+
'(DEPRECATED) Cleans all the intermediate tags for the given version'
3032
end
3133

3234
def self.details
33-
'Cleans all the intermediate tags for the given version'
35+
'(DEPRECATED) Cleans all the intermediate tags for the given version'
3436
end
3537

3638
def self.available_options
@@ -48,6 +50,16 @@ def self.output
4850
def self.return_value
4951
end
5052

53+
def self.category
54+
:deprecated
55+
end
56+
57+
def self.deprecated_notes
58+
"This action is deprecated as we don't believe it's currently in use in our projects.
59+
However, just to be sure that it's not in use, we decided to deprecate it first. If you
60+
believe that this is a mistake, please let us know on Slack."
61+
end
62+
5163
def self.authors
5264
['Automattic']
5365
end

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module Fastlane
22
module Actions
33
class IosFinalTagAction < Action
44
def self.run(params)
5+
return unless UI.confirm("#{deprecated_notes} Would you like to continue with the action?")
6+
57
require_relative '../../helper/ios/ios_git_helper'
68
require_relative '../../helper/ios/ios_version_helper'
79
version = Fastlane::Helper::Ios::VersionHelper.get_public_version
@@ -18,11 +20,11 @@ def self.run(params)
1820
#####################################################
1921

2022
def self.description
21-
'Finalize a relasae'
23+
'(DEPRECATED) Finalize a relasae'
2224
end
2325

2426
def self.details
25-
'Removes the temp tags and pushes the final one'
27+
'(DEPRECATED) Removes the temp tags and pushes the final one'
2628
end
2729

2830
def self.available_options
@@ -40,6 +42,16 @@ def self.output
4042
def self.return_value
4143
end
4244

45+
def self.category
46+
:deprecated
47+
end
48+
49+
def self.deprecated_notes
50+
"This action is deprecated as we don't believe it's currently in use in our projects.
51+
However, just to be sure that it's not in use, we decided to deprecate it first. If you
52+
believe that this is a mistake, please let us know on Slack."
53+
end
54+
4355
def self.authors
4456
['Automattic']
4557
end

0 commit comments

Comments
 (0)