fastlane-plugin-better_semantic_release 2.0.5 → 2.0.6
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: cdf9145fb92d0ad860e06aa1d0048a2b09e7486014b729f03edbc570a48e7343
|
4
|
+
data.tar.gz: 99a9080bc41ba01250989bcf28c1d3d8aef54485839a71aa4fb353c09e0746c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 297b91e363748c8ed031ba9a294fe79ce8a9ef8e4467781f629dbe51cb73f1138cf2c24aebf6e27b7c9b802effd96080b7c648895e55e329ca3fb9a96bf888e9
|
7
|
+
data.tar.gz: c7c1a7b7c9c56633deb74f43468851ea7f7c15ca960563f26076dbfb6d622b0dc6dc10f72e1df2780eac484f97cda5af3ca3c4034ffea1dfb4d68156892027df
|
@@ -172,33 +172,36 @@ module Fastlane
|
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
175
|
-
def self.parse_commits(
|
175
|
+
def self.parse_commits(squashed_commits, params)
|
176
176
|
parsed = []
|
177
177
|
# %s|%b|%H|%h|%an|%at
|
178
178
|
format_pattern = lane_context[SharedValues::CONVENTIONAL_CHANGELOG_ACTION_FORMAT_PATTERN]
|
179
|
-
|
180
|
-
|
179
|
+
squashed_commits.each do |squashed_commit|
|
180
|
+
commits = squashed_commit.split("*")
|
181
|
+
commits.drop(1).each do |line|
|
182
|
+
splitted = line.split("|")
|
181
183
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
184
|
+
commit = Helper::BetterSemanticReleaseHelper.parse_commit(
|
185
|
+
commit_subject: splitted[0],
|
186
|
+
commit_body: splitted[1],
|
187
|
+
pattern: format_pattern
|
188
|
+
)
|
187
189
|
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
190
|
+
unless commit[:scope].nil?
|
191
|
+
# 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
|
192
|
+
scope = commit[:scope]
|
193
|
+
scopes_to_ignore = params[:ignore_scopes]
|
194
|
+
# if it is, we'll skip this commit when bumping versions
|
195
|
+
next if scopes_to_ignore.include?(scope) #=> true
|
196
|
+
end
|
195
197
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
198
|
+
commit[:hash] = splitted[2]
|
199
|
+
commit[:short_hash] = splitted[3]
|
200
|
+
commit[:author_name] = splitted[4]
|
201
|
+
commit[:commit_date] = splitted[5]
|
200
202
|
|
201
|
-
|
203
|
+
parsed.push(commit)
|
204
|
+
end
|
202
205
|
end
|
203
206
|
|
204
207
|
parsed
|
@@ -248,6 +251,8 @@ module Fastlane
|
|
248
251
|
key: :sections,
|
249
252
|
description: "Map type to section title",
|
250
253
|
default_value: {
|
254
|
+
build: "Building system",
|
255
|
+
ci: "CICD",
|
251
256
|
feat: "Features",
|
252
257
|
fix: "Bug fixes",
|
253
258
|
refactor: "Code refactoring",
|
@@ -255,6 +260,7 @@ module Fastlane
|
|
255
260
|
chore: "Building system",
|
256
261
|
test: "Testing",
|
257
262
|
docs: "Documentation",
|
263
|
+
style: "Stylistic",
|
258
264
|
no_type: "Other work"
|
259
265
|
},
|
260
266
|
type: Hash,
|
@@ -277,7 +283,7 @@ module Fastlane
|
|
277
283
|
FastlaneCore::ConfigItem.new(
|
278
284
|
key: :display_links,
|
279
285
|
description: "Whether you want to display the links to commit IDs",
|
280
|
-
default_value:
|
286
|
+
default_value: false,
|
281
287
|
type: Boolean,
|
282
288
|
optional: true
|
283
289
|
),
|
@@ -1 +1 @@
|
|
1
|
-
module Fastlane module BetterSemanticRelease VERSION = "2.0.
|
1
|
+
module Fastlane module BetterSemanticRelease VERSION = "2.0.6" end end
|