Skip to content

Commit d953978

Browse files
committed
Merge branch '3.3.x'
2 parents b7ab74a + f426ac9 commit d953978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/hooks/forward-merge

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def find_milestone(username, password, repository, title)
6565
prefix = title.delete_suffix('.x')
6666
$log.debug "Finding nearest milestone from candidates starting with #{prefix}"
6767
titles = milestones.map { |milestone| milestone['title'] }
68-
titles = titles.select{ |title| title.start_with?(prefix) unless title.end_with?('.x')}
68+
titles = titles.select{ |title| title.start_with?(prefix) unless title.end_with?('.x') || (title.count('.') > 2)}
6969
titles = titles.sort_by { |v| Gem::Version.new(v) }
7070
$log.debug "Considering candidates #{titles}"
7171
if(titles.empty?)

0 commit comments

Comments
 (0)