1
0
mirror of https://gitee.com/dcren/initializr.git synced 2025-04-05 17:38:06 +08:00

Fix issue matcher to handle multi-digit versions

This commit is contained in:
Stephane Nicoll 2021-03-05 13:46:50 +01:00
parent e02633c862
commit 0f104ccb9a

View File

@ -25,7 +25,7 @@ def find_forward_merge(message_file)
message = File.read(message_file)
message.each_line do |line|
$log.debug "Checking #{line} for message"
match = /^(?:Fixes|Closes) gh-(\d+) in (\d\.\d\.[\dx](?:[\.\-](?:M|RC)\d)?)$/.match(line)
match = /^(?:Fixes|Closes) gh-(\d+) in (\d+\.\d+\.[\d+x](?:[\.\-](?:M|RC)\d)?)$/.match(line)
if match then
issue = match[1]
milestone = match[2]