fastlane-plugin-apadmi_grout 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dc2c373a820abfa36ddda6823d18c1a3fb5f64ea5d471c25d384c6026673f62
4
- data.tar.gz: 361b22737e6c5070759248ede9bd58fb06489564908ce4a5497b32f826442e3a
3
+ metadata.gz: 7af74235b3aded74ed3646a598b0a240d029644e99fa18cd7a7a8eb0a51a6c42
4
+ data.tar.gz: ba79047e8f182b6821579751a4279a7868f2256277709b81ee1312acb140a143
5
5
  SHA512:
6
- metadata.gz: 95d49ccc966a09331eed2121cfc80c2573f356d025fb9cb19dc8d7b8a7edf7a9cb5c0d7fc9dfb6ed2f8302384f83647acf0d9fb440488f4c3da9ff31448cebed
7
- data.tar.gz: 4351523aa41e3335e3385c009b44c190b4b0434d12260e859f23fbbbdde2cf349c3f8029e24e0951f0937beabcdd9588e8ba4fcb33ab12be8eab245ca9aa4ea5
6
+ metadata.gz: 6bc555f4d01eb279d91af62f16e557e91fc1a668e83bb2d885b7c27da119261ae7fafb1f6f9d9264c08372d576c69c6e703810be91c8b3519d12dc9fe086b9e3
7
+ data.tar.gz: eaf5d17fe968badcbb0bb4f0315b481497ed073d74243978a6074dd66eb6f2e915266a2d08ffc748242fec5228f51f2f3fed4ed283b835e50ca76ff27d66ec94
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Fastlane Plugin Changelog
2
2
 
3
+ ## [2.7.0] - 2024-09-24
4
+ * Add utility for checking for unmerged release branches before deployments
5
+
6
+ ## [2.6.1] - 2024-01-09
7
+ * Fix: missing blank? method because ActiveSupport requires you to load the extensions explicitly from 7.1
8
+ * Fix: Add null check to mapping path before file check
9
+
3
10
  ## [2.6.0] - 2023-09-20
4
11
  * Add option to expand ADO tickets with additional information
5
12
  * Add ability to assign users to ADO tickets
@@ -63,7 +63,7 @@ module Fastlane
63
63
  ) + ".txt"
64
64
  # rubocop:enable Style/StringConcatenation
65
65
  new_mapping_path = "#{params[:output_directory]}/#{mapping_filename}"
66
- if File.exist?(mapping_path)
66
+ if !mapping_path.nil? && File.exist?(mapping_path)
67
67
  File.rename(mapping_path, new_mapping_path)
68
68
  logger.success("Generated #{mapping_filename} in #{params[:output_directory]}")
69
69
  lane_context[SharedValues::ANDROID_MAPPING_FILE_PATH] = new_mapping_path
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "fastlane/action"
4
+ require "apadmi_grout"
5
+ require_relative "../utils/fastlane_logger"
6
+
7
+ module Fastlane
8
+ module Actions
9
+ # Check if there are releases that haven't been merged into
10
+ # this release
11
+ class CheckUnfinishedReleasesAction < Action
12
+ def self.run(params)
13
+ logger = FastLane::FastlaneLogger.new
14
+
15
+ action = Apadmi::Grout::CheckUnfinishedReleasesAction.new(Apadmi::Grout::GitUtils, logger)
16
+
17
+ unmerged = action.run(
18
+ params[:version],
19
+ params[:suppressed_error_versions].split(",")
20
+ )
21
+
22
+ if unmerged.any?
23
+ logger.error(%(
24
+ ======================================================================================
25
+ STOP!
26
+ You have old versions that aren't merged into your current release.
27
+ Check that all your old releases are correctly closed.
28
+ You may be about to release a version without all the features and bugfixes you expect.
29
+
30
+ The releases in question are #{unmerged.map(&:to_s)}.
31
+ ======================================================================================
32
+ ))
33
+ throw "Unmerged old versions detected, see logs for details"
34
+ end
35
+
36
+ logger.success("No unmerged releases found, we're good!")
37
+ end
38
+
39
+ def self.description
40
+ "Checks for any older version releases that aren't merged into this release"
41
+ end
42
+
43
+ def self.authors
44
+ ["samdc@apadmi.com"]
45
+ end
46
+
47
+ def self.available_options
48
+ [
49
+ FastlaneCore::ConfigItem.new(key: :version,
50
+ description: "The version of this release e.g 1.0.0",
51
+ type: String,
52
+ verify_block: proc do |value|
53
+ UI.user_error!("Didn't pass a valid release version") unless value
54
+ end,
55
+ optional: false),
56
+ FastlaneCore::ConfigItem.new(key: :suppressed_error_versions,
57
+ description: "Old versions that shouldn't throw an error (comma separated)",
58
+ env_name: "SUPPRESS_ERROR_VERSIONS",
59
+ default_value: "",
60
+ type: String,
61
+ optional: true)
62
+ ]
63
+ end
64
+
65
+ def self.is_supported?(_platform)
66
+ true
67
+ end
68
+ end
69
+ end
70
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module ApadmiGrout
5
- VERSION = "2.6.0"
5
+ VERSION = "2.7.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-apadmi_grout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apadmi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2024-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apadmi_grout
@@ -162,6 +162,7 @@ files:
162
162
  - lib/fastlane/plugin/apadmi_grout.rb
163
163
  - lib/fastlane/plugin/apadmi_grout/actions/build_apk_or_aab_action.rb
164
164
  - lib/fastlane/plugin/apadmi_grout/actions/build_ipa_action.rb
165
+ - lib/fastlane/plugin/apadmi_grout/actions/check_unfinished_releases_action.rb
165
166
  - lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb
166
167
  - lib/fastlane/plugin/apadmi_grout/actions/generate_release_notes_action.rb
167
168
  - lib/fastlane/plugin/apadmi_grout/actions/get_deployment_target_action.rb
@@ -182,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
183
  requirements:
183
184
  - - ">="
184
185
  - !ruby/object:Gem::Version
185
- version: 2.7.6
186
+ version: 3.0.0
186
187
  required_rubygems_version: !ruby/object:Gem::Requirement
187
188
  requirements:
188
189
  - - ">="