fastlane-plugin-semantic_release 1.6.0 → 1.7.0
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: '04344676923fc44788a389d16e617faeb2a0c45887fd724817e762df3862eaff'
|
4
|
+
data.tar.gz: 40008eb55b6177c4da04286dc0669af751dcb9386236fecbef3061ea47d18656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 929f9948bee1c0b4ab94c0b56c38339832e6e6508c0f073029e787bba98dc2bd837bfc0938d79596660248049dd4f81715e4555cbec356eafe939b2a505ee622
|
7
|
+
data.tar.gz: ab2f15113d8a4daa22f51382c85d3db9570e1b3cfe6ddcb7a0646f404c9bfa01350e1f5ad583d6afa0d708bc59b9ae16758d42fc02eae9f288ebd18d43d394c7
|
@@ -132,6 +132,7 @@ module Fastlane
|
|
132
132
|
# Get commits log between last version and head
|
133
133
|
splitted = get_commits_from_hash(hash: hash)
|
134
134
|
releases = params[:releases]
|
135
|
+
codepush_friendly = params[:codepush_friendly]
|
135
136
|
|
136
137
|
splitted.each do |line|
|
137
138
|
# conventional commits are in format
|
@@ -139,7 +140,8 @@ module Fastlane
|
|
139
140
|
commit = Helper::SemanticReleaseHelper.parse_commit(
|
140
141
|
commit_subject: line.split("|")[0],
|
141
142
|
commit_body: line.split("|")[1],
|
142
|
-
releases: releases
|
143
|
+
releases: releases,
|
144
|
+
codepush_friendly: codepush_friendly
|
143
145
|
)
|
144
146
|
|
145
147
|
if commit[:release] == "major" || commit[:is_breaking_change]
|
@@ -198,6 +200,13 @@ module Fastlane
|
|
198
200
|
default_value: { fix: "patch", feat: "minor" },
|
199
201
|
type: Hash
|
200
202
|
),
|
203
|
+
FastlaneCore::ConfigItem.new(
|
204
|
+
key: :codepush_friendly,
|
205
|
+
description: "These types are consider as codepush friendly automatically",
|
206
|
+
default_value: ["chore", "test", "docs"],
|
207
|
+
type: Array,
|
208
|
+
optional: true
|
209
|
+
),
|
201
210
|
FastlaneCore::ConfigItem.new(
|
202
211
|
key: :tag_version_match,
|
203
212
|
description: "To parse version number from tag name",
|
@@ -17,6 +17,7 @@ module Fastlane
|
|
17
17
|
commit_subject = params[:commit_subject].strip
|
18
18
|
commit_body = params[:commit_body]
|
19
19
|
releases = params[:releases]
|
20
|
+
codepush_friendly = params[:codepush_friendly]
|
20
21
|
pattern = /^(docs|fix|feat|chore|style|refactor|perf|test)(\((.*)\))?(!?)\: (.*)/
|
21
22
|
breaking_change_pattern = /BREAKING CHANGES?: (.*)/
|
22
23
|
codepush_pattern = /codepush?: (.*)/
|
@@ -42,6 +43,9 @@ module Fastlane
|
|
42
43
|
unless releases.nil?
|
43
44
|
result[:release] = releases[type.to_sym]
|
44
45
|
end
|
46
|
+
unless codepush_friendly.nil?
|
47
|
+
result[:is_codepush_friendly] = codepush_friendly.include?(type)
|
48
|
+
end
|
45
49
|
|
46
50
|
unless commit_body.nil?
|
47
51
|
breaking_change_matched = commit_body.match(breaking_change_pattern)
|
@@ -52,7 +56,7 @@ module Fastlane
|
|
52
56
|
result[:breaking_change] = breaking_change_matched[1]
|
53
57
|
end
|
54
58
|
unless codepush_matched.nil?
|
55
|
-
result[:is_codepush_friendly] =
|
59
|
+
result[:is_codepush_friendly] = codepush_matched[1] == 'ok'
|
56
60
|
end
|
57
61
|
end
|
58
62
|
end
|
@@ -1 +1 @@
|
|
1
|
-
module Fastlane module SemanticRelease VERSION = "1.
|
1
|
+
module Fastlane module SemanticRelease VERSION = "1.7.0" end end
|