Commit 9932124c authored by Síle Ekaterin Liszka's avatar Síle Ekaterin Liszka
Browse files

Chessa::Bug::Adelie: slightly cleaner label handling.

parent 08a50e8d
......@@ -179,12 +179,14 @@ sub mr {
labels => [],
merge => $json->{merge_status},
);
my @labels = ();
$d{merge} =~ s/_/ /g;
if (exists($json->{labels})) {
for my $label (@{$json->{labels}}) {
push @{$d{labels}}, $label->{title};
push @labels, $label->{title};
}
}
$d{labels} = \@labels;
my $str = $self->{msg}("$project!$d{id}", $d{title}) . ' (' .
$self->{msg}('Status', $d{state}) . "; $d{merge} " .
$self->{msg}('Author', $d{author}) . ') ' .
......
Supports Markdown
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