Skip to content

Commit 1401c0a

Browse files
author
Nigel Metheringham
committed
Tweaking of close bug code
1 parent 95716aa commit 1401c0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script/git-to-bugzilla.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ sub update_bugzilla {
4343
$bz->additional_comments( join( "\n", $header, @{ $info->{all} } ) );
4444
}
4545

46-
$bz->change_status("fixed") if ( $set->{action} eq 'fixes' );
47-
$bz->change_status("closed") if ( $set->{action} eq 'closes' );
46+
$bz->change_status("fixed") if ( $set->{action} =~ /fixes/ );
47+
$bz->change_status("closed") if ( $set->{action} =~ /closes/ );
4848

4949
$bz->commit;
5050

@@ -74,7 +74,6 @@ sub find_bugzilla_references {
7474
}
7575

7676
# remap actions
77-
$action = 'closes' if ( $action =~ /^fix/ );
7877

7978
push( @results, { bug => $bugid, action => $action } );
8079
##printf( "%s\n\taction = %s bugid = %s\n", $info->{rev}, $action, $bugid );

0 commit comments

Comments
 (0)