fastlane-plugin-semantic_release2 1.12.0 → 1.13.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 +4 -4
- data/lib/fastlane/plugin/semantic_release2/actions/analyze_commits.rb +34 -24
- data/lib/fastlane/plugin/semantic_release2/actions/conventional_changelog.rb +7 -1
- data/lib/fastlane/plugin/semantic_release2/helper/semantic_release_helper.rb +1 -1
- data/lib/fastlane/plugin/semantic_release2/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8885fb6f92b6da59d698148f60b1450d579cb8406a1c5c755ac2e1dfc563ed9a
|
4
|
+
data.tar.gz: '0525738e7c76d101805e9daf7b7f66ce4f943082f3a62d6bd210075be371f8c9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2889499f80ddd4916734be4f56576d05a6a6d1f0431592ecfc088e35db05a3d26c9f5c5488a81247fd01b0ffe73341ef47a48f0ada7bf40324f9ad0f3508d900
|
7
|
+
data.tar.gz: 8d9508a633d4be157cf0e228ff78d0d0bd2e453cd1fd7e58728093d453659d5cd18ab4588f49912870cf53929fb516b479529bac1d15b6de2b729d6ead313d39
|
@@ -47,33 +47,37 @@ module Fastlane
|
|
47
47
|
# Default last version
|
48
48
|
version = '0.0.0'
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
debug: params[:debug]
|
53
|
-
)
|
54
|
-
|
55
|
-
if tag.empty?
|
56
|
-
UI.message("First commit of the branch is taken as a begining of next release")
|
57
|
-
# If there is no tag found we taking the first commit of current branch
|
58
|
-
hash = Actions.sh('git rev-list --max-parents=0 HEAD', log: params[:debug]).chomp
|
50
|
+
if params[:start]
|
51
|
+
hash = params[:start]
|
59
52
|
else
|
60
|
-
|
61
|
-
|
62
|
-
tag_name = tag.split('-')[0].strip
|
63
|
-
parsed_version = tag_name.match(params[:tag_version_match])
|
64
|
-
|
65
|
-
if parsed_version.nil?
|
66
|
-
UI.user_error!("Error while parsing version from tag #{tag_name} by using tag_version_match - #{params[:tag_version_match]}. Please check if the tag contains version as you expect and if you are using single brackets for tag_version_match parameter.")
|
67
|
-
end
|
68
|
-
|
69
|
-
version = parsed_version[0]
|
70
|
-
# Get a hash of last version tag
|
71
|
-
hash = get_last_tag_hash(
|
72
|
-
tag_name: tag_name,
|
53
|
+
tag = get_last_tag(
|
54
|
+
match: params[:match],
|
73
55
|
debug: params[:debug]
|
74
56
|
)
|
75
57
|
|
76
|
-
|
58
|
+
if tag.empty?
|
59
|
+
UI.message("First commit of the branch is taken as a begining of next release")
|
60
|
+
# If there is no tag found we taking the first commit of current branch
|
61
|
+
hash = Actions.sh('git rev-list --max-parents=0 HEAD', log: params[:debug]).chomp
|
62
|
+
else
|
63
|
+
# Tag's format is v2.3.4-5-g7685948
|
64
|
+
# See git describe man page for more info
|
65
|
+
tag_name = tag.split('-')[0].strip
|
66
|
+
parsed_version = tag_name.match(params[:tag_version_match])
|
67
|
+
|
68
|
+
if parsed_version.nil?
|
69
|
+
UI.user_error!("Error while parsing version from tag #{tag_name} by using tag_version_match - #{params[:tag_version_match]}. Please check if the tag contains version as you expect and if you are using single brackets for tag_version_match parameter.")
|
70
|
+
end
|
71
|
+
|
72
|
+
version = parsed_version[0]
|
73
|
+
# Get a hash of last version tag
|
74
|
+
hash = get_last_tag_hash(
|
75
|
+
tag_name: tag_name,
|
76
|
+
debug: params[:debug]
|
77
|
+
)
|
78
|
+
|
79
|
+
UI.message("Found a tag #{tag_name} associated with version #{version}")
|
80
|
+
end
|
77
81
|
end
|
78
82
|
|
79
83
|
# converts last version string to the int numbers
|
@@ -148,7 +152,7 @@ module Fastlane
|
|
148
152
|
git_command = 'git rev-list --max-parents=0 HEAD'
|
149
153
|
# Begining of the branch is taken for codepush analysis
|
150
154
|
hash_lines = Actions.sh("#{git_command} | wc -l", log: params[:debug]).chomp
|
151
|
-
hash = Actions.sh(git_command, log: params[:debug]).chomp
|
155
|
+
hash = params[:start] || Actions.sh(git_command, log: params[:debug]).chomp
|
152
156
|
next_major = 0
|
153
157
|
next_minor = 0
|
154
158
|
next_patch = 0
|
@@ -230,6 +234,12 @@ module Fastlane
|
|
230
234
|
UI.user_error!("No match for analyze_commits action given, pass using `match: 'expr'`") unless value && !value.empty?
|
231
235
|
end
|
232
236
|
),
|
237
|
+
FastlaneCore::ConfigItem.new(
|
238
|
+
key: :start,
|
239
|
+
description: "Use a commit hash instead of HEAD",
|
240
|
+
type: String,
|
241
|
+
optional: true
|
242
|
+
),
|
233
243
|
FastlaneCore::ConfigItem.new(
|
234
244
|
key: :end,
|
235
245
|
description: "Use a commit hash instead of HEAD",
|
@@ -33,7 +33,7 @@ module Fastlane
|
|
33
33
|
|
34
34
|
# Get commits log between last version and head
|
35
35
|
commits = get_commits_from_hash(
|
36
|
-
hash: last_tag_hash,
|
36
|
+
hash: params[:start] || last_tag_hash,
|
37
37
|
end: params[:end],
|
38
38
|
debug: params[:debug]
|
39
39
|
)
|
@@ -236,6 +236,12 @@ module Fastlane
|
|
236
236
|
type: Array,
|
237
237
|
optional: true
|
238
238
|
),
|
239
|
+
FastlaneCore::ConfigItem.new(
|
240
|
+
key: :start,
|
241
|
+
description: "Use a commit hash instead of HEAD",
|
242
|
+
type: String,
|
243
|
+
optional: true
|
244
|
+
),
|
239
245
|
FastlaneCore::ConfigItem.new(
|
240
246
|
key: :end,
|
241
247
|
description: "Use a commit hash instead of HEAD",
|
@@ -13,7 +13,7 @@ module Fastlane
|
|
13
13
|
if params[:end] and !params[:end].empty?
|
14
14
|
end_hash = params[:end]
|
15
15
|
end
|
16
|
-
command = "git log --pretty='#{params[:pretty]}' --reverse #{params[:start]}
|
16
|
+
command = "git log --pretty='#{params[:pretty]}' --reverse #{params[:start]}..#{end_hash}"
|
17
17
|
Actions.sh(command, log: params[:debug]).chomp
|
18
18
|
end
|
19
19
|
|
@@ -1 +1 @@
|
|
1
|
-
module Fastlane module SemanticRelease2 VERSION = "1.
|
1
|
+
module Fastlane module SemanticRelease2 VERSION = "1.13.0" end end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-semantic_release2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Lauze
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.117.1
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: william.lauze@gmail.com
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
@@ -153,7 +153,7 @@ homepage: https://github.com/xotahal/fastlane-plugin-semantic_release
|
|
153
153
|
licenses:
|
154
154
|
- MIT
|
155
155
|
metadata: {}
|
156
|
-
post_install_message:
|
156
|
+
post_install_message:
|
157
157
|
rdoc_options: []
|
158
158
|
require_paths:
|
159
159
|
- lib
|
@@ -168,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
172
|
-
signing_key:
|
171
|
+
rubygems_version: 3.1.2
|
172
|
+
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: 'Fork for: Automated version managment and generator of release notes.'
|
175
175
|
test_files: []
|