From b7041049f3aa99499f400fecc0dfb84320eb2542 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 24 Apr 2017 17:10:24 -0400 Subject: Bug 1359184 - Use automation user instead of nobody for movecomponent.pl --- scripts/movecomponent.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/movecomponent.pl b/scripts/movecomponent.pl index c558808fc..4c3b26cfb 100755 --- a/scripts/movecomponent.pl +++ b/scripts/movecomponent.pl @@ -122,7 +122,9 @@ $dbh->do("UPDATE bugs SET lastdiffed = NOW() WHERE component_id = ?", undef, $component->id); # Update bugs_activity -my $userid = 1; # nobody@mozilla.org +my $auto_user = Bugzilla::User->check({ name => 'automation@bmo.tld' }); +my $userid = $auto_user->id; +Bugzilla->set_user($auto_user); $dbh->do("INSERT INTO bugs_activity(bug_id, who, bug_when, fieldid, removed, added) -- cgit v1.2.3-24-g4f1b