Skip to content

Commit

Permalink
feat: clean up version path printout
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed Jun 16, 2020
1 parent af62412 commit 2cfd834
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def self.is_releasable(params)
releases = params[:releases]

splitted.each do |line|
parts = line.split("|")
subject = parts[0].strip
# conventional commits are in format
# type: subject (fix: app crash - for example)
commit = Helper::SemanticReleaseHelper.parse_commit(
commit_subject: line.split("|")[0],
commit_body: line.split("|")[1],
commit_subject: subject,
commit_body: parts[1],
releases: releases
)

Expand All @@ -118,7 +120,7 @@ def self.is_releasable(params)
end

next_version = "#{next_major}.#{next_minor}.#{next_patch}"
UI.message("#{next_version}: #{line}") if params[:show_version_path]
UI.message("#{next_version}: #{subject}") if params[:show_version_path]
end

next_version = "#{next_major}.#{next_minor}.#{next_patch}"
Expand Down

0 comments on commit 2cfd834

Please sign in to comment.