Commit 8e14102c authored by Robert Ricci's avatar Robert Ricci

Add some more useful fields in the header

parent 34863414
......@@ -161,11 +161,17 @@ sub send_mail($$) {
my $body = $json->pretty->encode( $data );
my $subject = "GitLab System Event: ". $data->{'event_name'};
if ($data->{'name'}) {
$subject .= " (" . $data->{'name'} . ")";
$subject .= " " . $data->{'name'};
}
if ($data->{'user_name'}) {
$subject .= " (" . $data->{'user_name'} . ")";
}
if ($data->{'user_email'}) {
$subject .= " <" . $data->{'user_email'} . ">";
}
if ($data->{'owner_email'}) {
$subject .= " <" . $data->{'owner_email'} . ">";
}
if ($verbose) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment