-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unneeded and deprecated methods/actions #586
Remove unneeded and deprecated methods/actions #586
Conversation
require_relative '../../helper/ios/ios_version_helper' | ||
require_relative '../../helper/android/android_version_helper' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These version helpers are not being used in this action.
require_relative '../../helper/ios/ios_version_helper' | ||
require_relative '../../helper/android/android_version_helper' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These version helpers are not being used in this action.
require_relative '../../helper/ios/ios_version_helper' | ||
require_relative '../../helper/android/android_version_helper' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version helper is not being used in this action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit strange that this action is in common/
yet use ios_version_helper
(to call Fastlane::Helper::Ios::VersionHelper.calc_next_release_version(last_stone[:title])
)…
I mean, in practice I guess it doesn't matter because the computation for the next_release_version
is the same for iOS and Android, which is why we ended up using an arbitrary one I guess, but still the unbalance feels a bit strange.
Not really a problem for this PR, and I'm guessing we'll plan to deprecate this action in a few months once everything have migrated to ReleaseV2 and that ReleaseV2 will be the one creating the new milestones instead of Fastlane
… so not worth fixing anyway 🙃
require_relative '../../helper/ios/ios_version_helper' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version helper is not being used in this action.
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can see this method in the WooCommerce iOS Fastfile
for an example of how to use the Versioning
module methods to check for a hotfix: https://github.com/woocommerce/woocommerce-ios/blob/dcfbf67c24fec624bd1935a465aeff373a0aaf01/fastlane/Fastfile#L1391
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to Android in https://github.com/wordpress-mobile/release-toolkit/pull/580/files, the ios_tag_build
action is not being used by any of the Automattic apps in lieu of using the GitHub release system to tag builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This action is not being used by any of the Automattic apps, so I decided to delete it so that the get_public_version
method could be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a nice cleanup! 👏 👏
@@ -1,46 +0,0 @@ | |||
module Fastlane | |||
module Actions | |||
class IosValidateCiBuildAction < Action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't even aware we had such an action to begin with 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @spencertransier !
64f8db3
into
mokagio/breaking-remove-deprecated-actions
What does it do?
This PR builds on Gio's #580 to remove some additional unneeded or deprecated methods and actions for the 12.0 release. The versioning methods and actions have been replaced by the methods in the
Versioning
module.Checklist before requesting a review
bundle exec rubocop
to test for code style violations and recommendationsspecs/*_spec.rb
) if applicablebundle exec rspec
to run the whole test suite and ensure all your tests passCHANGELOG.md
file to describe your changes under the appropriate existing###
subsection of the existing## Trunk
section.MIGRATION.md
file to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.