Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(releases): fix release requester for a new gem #256

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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