Skip to content

Commit

Permalink
chore(releases): fix release requester for a new gem (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Feb 7, 2024
1 parent 1a29ad3 commit 10619ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .toys/release/.lib/release_requester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ def determine_last_version
end

def analyze_messages
unless @last_version
@others << "Initial release."
return
end
return unless @last_version
@utils.log("Analyzing commit messages since last version ...")
dir = @utils.gem_directory(@gem_name)
dir = "#{dir}/" unless dir.end_with?("/")
Expand Down Expand Up @@ -191,6 +188,10 @@ def determine_new_version

def build_changelog_entries
@changelog_entries = []
unless @last_version
@changelog_entries << "Initial release."
return
end
unless @breaks.empty?
@breaks.each do |line|
@changelog_entries << "* BREAKING CHANGE: #{line}"
Expand Down

0 comments on commit 10619ab

Please sign in to comment.