fastlane-plugin-apadmi_grout 2.6.1 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7af74235b3aded74ed3646a598b0a240d029644e99fa18cd7a7a8eb0a51a6c42
|
4
|
+
data.tar.gz: ba79047e8f182b6821579751a4279a7868f2256277709b81ee1312acb140a143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc555f4d01eb279d91af62f16e557e91fc1a668e83bb2d885b7c27da119261ae7fafb1f6f9d9264c08372d576c69c6e703810be91c8b3519d12dc9fe086b9e3
|
7
|
+
data.tar.gz: eaf5d17fe968badcbb0bb4f0315b481497ed073d74243978a6074dd66eb6f2e915266a2d08ffc748242fec5228f51f2f3fed4ed283b835e50ca76ff27d66ec94
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
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
|
+
|
3
6
|
## [2.6.1] - 2024-01-09
|
4
7
|
* Fix: missing blank? method because ActiveSupport requires you to load the extensions explicitly from 7.1
|
5
8
|
* Fix: Add null check to mapping path before file check
|
@@ -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
|
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.
|
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: 2024-
|
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:
|
186
|
+
version: 3.0.0
|
186
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
188
|
requirements:
|
188
189
|
- - ">="
|