Skip to content

Commit

Permalink
chore: Fixed a crash when parsing a non-release conventional commit m…
Browse files Browse the repository at this point in the history
…essage (#230)
  • Loading branch information
dazuma authored Oct 2, 2023
1 parent 4b620f0 commit 4e3c953
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .toys/release/.lib/release_requester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ def analyze_title(title)
return bump_segment unless match
tag_info = @utils.release_commit_tags[match[1]]
description = normalize_line(match[3], delete_pr_number: true)
@changes[tag_info.tag] << description if tag_info
bump_segment = [bump_segment, tag_info.bump_segment].min
if tag_info
@changes[tag_info.tag] << description
bump_segment = [bump_segment, tag_info.bump_segment].min
end
if match[2] == "!"
bump_segment = 0
@breaks << description
Expand Down

0 comments on commit 4e3c953

Please sign in to comment.