Bug ID taken from commit not working
Brought to you by:
sits
Looks like this is not working - in none of the commit scripts:
my @bugs = ();
$bug_ids =~ s/.*[Bb][Uu][Gg]:?(\d+)\b.*/$1 /g;
while ($bug_ids =~ /\b[Bb][Uu][Gg]:?\s*(\d+)\b/g) {
push @bugs, $1;
}
I changed it this way and it works:
my @bugs = ();
$bug_ids =~ s/.*[Bb][Uu][Gg]:?(\d+)\b.*/$1 /g;
while ($bug_ids =~ /\b(\d+) /g) {
push @bugs, $1;
}
First regex removes the "bug" text. So I'm wondering if really nobody is using this feature.