fastlane-plugin-wpmreleasetoolkit 11.1.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_create_xml_release_notes.rb +0 -2
  3. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb +1 -9
  4. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/close_milestone_action.rb +0 -2
  5. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/{create_release_action.rb → create_github_release_action.rb} +1 -3
  6. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_new_milestone_action.rb +0 -1
  7. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_release_backmerge_pull_request_action.rb +4 -1
  8. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/publish_github_release_action.rb +63 -0
  9. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_check_beta_deps.rb +0 -3
  10. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_version_helper.rb +2 -373
  11. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/git_helper.rb +8 -29
  12. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb +26 -1
  13. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_version_helper.rb +0 -270
  14. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/release_note_short_metadata_block.rb +2 -2
  15. data/lib/fastlane/plugin/wpmreleasetoolkit/version.rb +1 -1
  16. metadata +8 -58
  17. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_betabuild_prechecks.rb +0 -137
  18. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_build_prechecks.rb +0 -108
  19. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_beta.rb +0 -90
  20. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_final_release.rb +0 -82
  21. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_hotfix.rb +0 -91
  22. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_release.rb +0 -109
  23. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_codefreeze_prechecks.rb +0 -108
  24. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb +0 -86
  25. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_finalize_prechecks.rb +0 -89
  26. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb +0 -62
  27. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_app_version.rb +0 -62
  28. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_release_version.rb +0 -62
  29. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_hotfix_prechecks.rb +0 -78
  30. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_tag_build.rb +0 -70
  31. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_betabuild_prechecks.rb +0 -98
  32. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_build_prechecks.rb +0 -74
  33. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb +0 -67
  34. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_hotfix.rb +0 -83
  35. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_release.rb +0 -87
  36. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_codefreeze_prechecks.rb +0 -76
  37. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_completecodefreeze_prechecks.rb +0 -65
  38. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb +0 -40
  39. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_finalize_prechecks.rb +0 -66
  40. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb +0 -54
  41. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb +0 -54
  42. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_version.rb +0 -60
  43. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_hotfix_prechecks.rb +0 -78
  44. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_tag_build.rb +0 -44
  45. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_validate_ci_build.rb +0 -46
  46. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb +0 -28
  47. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb +0 -28
@@ -1,44 +0,0 @@
1
- module Fastlane
2
- module Actions
3
- class IosTagBuildAction < Action
4
- def self.run(params)
5
- require_relative '../../helper/ios/ios_version_helper'
6
- require_relative '../../helper/ios/ios_git_helper'
7
-
8
- itc_ver = Fastlane::Helper::Ios::VersionHelper.get_build_version
9
- int_ver = Fastlane::Helper::Ios::VersionHelper.get_internal_version unless ENV['INTERNAL_CONFIG_FILE'].nil?
10
- Fastlane::Helper::GitHelper.create_tag(itc_ver)
11
- Fastlane::Helper::GitHelper.create_tag(int_ver) unless int_ver.nil?
12
- end
13
-
14
- #####################################################
15
- # @!group Documentation
16
- #####################################################
17
-
18
- def self.description
19
- 'Tags the current build'
20
- end
21
-
22
- def self.details
23
- 'Tags the current build'
24
- end
25
-
26
- def self.available_options
27
- end
28
-
29
- def self.output
30
- end
31
-
32
- def self.return_value
33
- end
34
-
35
- def self.authors
36
- ['Automattic']
37
- end
38
-
39
- def self.is_supported?(platform)
40
- %i[ios mac].include?(platform)
41
- end
42
- end
43
- end
44
- end
@@ -1,46 +0,0 @@
1
- module Fastlane
2
- module Actions
3
- class IosValidateCiBuildAction < Action
4
- def self.run(params)
5
- require_relative '../../helper/ios/ios_git_helper'
6
- require_relative '../../helper/ios/ios_version_helper'
7
-
8
- version = Fastlane::Helper::Ios::VersionHelper.get_public_version
9
- head_tags = Fastlane::Helper::GitHelper.list_tags_on_current_commit
10
- UI.user_error!('HEAD is not on tag. Aborting!') if head_tags.empty?
11
-
12
- head_tags.include?(version) # Current commit is tagged with "version" tag
13
- end
14
-
15
- #####################################################
16
- # @!group Documentation
17
- #####################################################
18
-
19
- def self.description
20
- 'Validate the build on CI environment'
21
- end
22
-
23
- def self.details
24
- 'Validate the build on CI environment'
25
- end
26
-
27
- def self.available_options
28
- []
29
- end
30
-
31
- def self.output
32
- end
33
-
34
- def self.return_value
35
- end
36
-
37
- def self.authors
38
- ['Automattic']
39
- end
40
-
41
- def self.is_supported?(platform)
42
- %i[ios mac].include?(platform)
43
- end
44
- end
45
- end
46
- end
@@ -1,28 +0,0 @@
1
- module Fastlane
2
- module Helper
3
- module Android
4
- # Helper methods to execute git-related operations that are specific to Android projects
5
- #
6
- module GitHelper
7
- # Commit the files that are modified when we bump version numbers on an Android project
8
- #
9
- # This typically commits the `version.properties` inside root folder or `build.gradle` file
10
- # inside the project subfolder.
11
- #
12
- def self.commit_version_bump(build_gradle_path:, version_properties_path:)
13
- if File.exist?(version_properties_path)
14
- git_commit(
15
- path: version_properties_path,
16
- message: 'Bump version number'
17
- )
18
- else
19
- git_commit(
20
- path: build_gradle_path,
21
- message: 'Bump version number'
22
- )
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,28 +0,0 @@
1
- module Fastlane
2
- module Helper
3
- module Ios
4
- # Helper methods to execute git-related operations that are specific to iOS projects
5
- #
6
- module GitHelper
7
- # Commit the files that are modified when we bump version numbers on an iOS project
8
- #
9
- # This typically commits:
10
- # - The files in `./config/*` – especially `Version.*.xcconfig` files
11
- #
12
- # @env PROJECT_ROOT_FOLDER The path to the git root of the project
13
- #
14
- def self.commit_version_bump
15
- files_list = [File.join(get_from_env!(key: 'PROJECT_ROOT_FOLDER'), 'config', '.')]
16
-
17
- Fastlane::Helper::GitHelper.commit(message: 'Bump version number', files: files_list)
18
- end
19
-
20
- def self.get_from_env!(key:)
21
- ENV.fetch(key) do
22
- UI.user_error! "Could not find value for \"#{key}\" in environment."
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end