Ensure the current milestone is version-ish

parent 064c401a
......@@ -103,6 +103,7 @@ module ReleaseTools
def self.current_milestone
current = milestones(Project::GitlabCe, state: 'active')
.select { |m| current_milestone?(m) }
.select { |m| m.title.match?(/\A\d+.\d+\z/) }
.max_by(&:due_date)
current || MissingMilestone.new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment