fastlane-plugin-better_semantic_release 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07f8f88f0e9ce157b5e16d2b00101b143b94390d6e0f1806a5c3942464a61718
|
4
|
+
data.tar.gz: eea2ce50bd0aef6f0b6df4aa3a403fd5198321cc5f8f38e8c3546721433fe75a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd4041df9ed124c554f262ddfef436c4074de685bad1cf21295fe23e4bc1a1b92251eb65bc16de7eff733e51a47f35b0dfb6aa0b252613b00e868b3dc589801
|
7
|
+
data.tar.gz: 040b4d517911c0af92f27cbf56119cfb3b5ba2afc600739220bb26b1aa516eab0d7112fcaa8bb1195b2070cb78cd8b49405d5521b3f7d6dc7464d1bdbe1c86a6
|
@@ -136,40 +136,43 @@ module Fastlane
|
|
136
136
|
splitted.each do |squashed_commit|
|
137
137
|
commits = squashed_commit.split("*")
|
138
138
|
commits.drop(1).each do |line|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
139
|
+
parts = line.split(":")
|
140
|
+
if parts.length > 1
|
141
|
+
# conventional commits are in format
|
142
|
+
# type: subject (fix: app crash - for example)
|
143
|
+
commit = Helper::BetterSemanticReleaseHelper.parse_commit(
|
144
|
+
commit_subject: line,
|
145
|
+
commit_body: parts[1].strip,
|
146
|
+
releases: releases,
|
147
|
+
pattern: format_pattern
|
148
|
+
)
|
149
|
+
|
150
|
+
unless commit[:scope].nil?
|
151
|
+
# if this commit has a scope, then we need to inspect to see if that is one of the scopes we're trying to exclude
|
152
|
+
scope = commit[:scope]
|
153
|
+
scopes_to_ignore = params[:ignore_scopes]
|
154
|
+
# if it is, we'll skip this commit when bumping versions
|
155
|
+
next if scopes_to_ignore.include?(scope) #=> true
|
156
|
+
end
|
147
157
|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
158
|
+
if commit[:release] == "major" || commit[:is_breaking_change]
|
159
|
+
next_major += 1
|
160
|
+
next_minor = 0
|
161
|
+
next_patch = 0
|
162
|
+
elsif commit[:release] == "minor"
|
163
|
+
next_minor += 1
|
164
|
+
next_patch = 0
|
165
|
+
elsif commit[:release] == "patch"
|
166
|
+
next_patch += 1
|
167
|
+
end
|
155
168
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
next_patch = 0
|
160
|
-
elsif commit[:release] == "minor"
|
161
|
-
next_minor += 1
|
162
|
-
next_patch = 0
|
163
|
-
elsif commit[:release] == "patch"
|
164
|
-
next_patch += 1
|
165
|
-
end
|
169
|
+
unless commit[:is_codepush_friendly]
|
170
|
+
is_next_version_compatible_with_codepush = false
|
171
|
+
end
|
166
172
|
|
167
|
-
|
168
|
-
|
173
|
+
next_version = "#{next_major}.#{next_minor}.#{next_patch}"
|
174
|
+
UI.message("#{next_version}") if params[:show_version_path]
|
169
175
|
end
|
170
|
-
|
171
|
-
next_version = "#{next_major}.#{next_minor}.#{next_patch}"
|
172
|
-
UI.message("#{next_version}") if params[:show_version_path]
|
173
176
|
end
|
174
177
|
end
|
175
178
|
|
@@ -1 +1 @@
|
|
1
|
-
module Fastlane module BetterSemanticRelease VERSION = "2.0.
|
1
|
+
module Fastlane module BetterSemanticRelease VERSION = "2.0.4" end end
|