mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 05:13:15 +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 = File.read(message_file)
|
||||||
message.each_line do |line|
|
message.each_line do |line|
|
||||||
$log.debug "Checking #{line} for message"
|
$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
|
if match then
|
||||||
issue = match[1]
|
issue = match[1]
|
||||||
milestone = match[2]
|
milestone = match[2]
|
||||||
|
Loading…
Reference in New Issue
Block a user