Skip to content

Commit 8966a87

Browse files
authored
Merge pull request #9121 from ruby/fix-changelog-prerelease
Support pre-release for generating changelog
2 parents 80474a8 + ed70365 commit 8966a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/release.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def initialize(version)
160160
@previous_stable_branch = @level == :minor_or_major ? "#{segments[0]}.#{segments[1] - 1}" : @stable_branch
161161
@previous_stable_branch = "3.7" if @stable_branch == "4.0"
162162

163-
@previous_release_tag = if @level == :minor_or_major
163+
@previous_release_tag = if @level == :minor_or_major && segments.size < 4
164164
"v#{@previous_stable_branch}.0"
165165
else
166166
`git describe --tags --abbrev=0`.strip

0 commit comments

Comments
 (0)