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:
parent
e02633c862
commit
0f104ccb9a
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user