fastlane-plugin-better_semantic_release 2.0.5 → 2.0.6

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: e2e567960e000716fcec33f714dfa4c83514923cffb9e6aa0d89f4bbcb7fc52f
4
- data.tar.gz: 2770b86e3a819fc0d18e18bd053138b6f8e23456011cc67702d8aa4f7b79d58e
3
+ metadata.gz: cdf9145fb92d0ad860e06aa1d0048a2b09e7486014b729f03edbc570a48e7343
4
+ data.tar.gz: 99a9080bc41ba01250989bcf28c1d3d8aef54485839a71aa4fb353c09e0746c2
5
5
  SHA512:
6
- metadata.gz: 0e4db89d5d4342bcba405d6033c1cc19f679bae0ecd7c6106dd1b77d0768e7a1c5086963cf41f9359a829ceee6dda04a6cc0286e7c95efc28a163ad5bc8c0825
7
- data.tar.gz: 7b59437f89d7b78b7bd6b6620b50f3f260f7804ba042d878a6cf4e4a0dea4eebabb89124e9324b74329a9afa95ab83eca3d7efd5584840f6c99905281bd8396f
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(commits, params)
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
- commits.each do |line|
180
- splitted = line.split("|")
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
- commit = Helper::BetterSemanticReleaseHelper.parse_commit(
183
- commit_subject: splitted[0],
184
- commit_body: splitted[1],
185
- pattern: format_pattern
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
- unless commit[:scope].nil?
189
- # 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
190
- scope = commit[:scope]
191
- scopes_to_ignore = params[:ignore_scopes]
192
- # if it is, we'll skip this commit when bumping versions
193
- next if scopes_to_ignore.include?(scope) #=> true
194
- end
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
- commit[:hash] = splitted[2]
197
- commit[:short_hash] = splitted[3]
198
- commit[:author_name] = splitted[4]
199
- commit[:commit_date] = splitted[5]
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
- parsed.push(commit)
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: true,
286
+ default_value: false,
281
287
  type: Boolean,
282
288
  optional: true
283
289
  ),
@@ -1 +1 @@
1
- module Fastlane module BetterSemanticRelease VERSION = "2.0.5" end end
1
+ module Fastlane module BetterSemanticRelease VERSION = "2.0.6" end end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-better_semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Greco