Permalink
Browse files

Fix syntax for blockers message.

Checks if @tickets is empty and specifically reports 'no known blockers'.
  • Loading branch information...
MorayJ authored and = committed Oct 6, 2018
1 parent 4c41fa1 commit 56604393f5c6a111d38e1b95849a0c5b4453b991
Showing with 7 additions and 2 deletions.
  1. +7 −2 xbin/Releasable.p6
@@ -168,8 +168,13 @@ sub blockers {
when Positional { @tickets.append: $_ }
default { die Expected Str or Positional but got {.^name} }
}
$summary ~= . At least if $summary; # TODO could say “At least 0 blockers” 😂
$summary ~= {+@tickets} blocker{@tickets ≠ 1 ?? s !! };
if @tickets == 0 {
$summary ~= . if $summary;
$summary ~= There are no known blockers;
} else {
$summary ~= . At least if $summary;
$summary ~= {+@tickets} blocker{@tickets ≠ 1 ?? s !! };
}
# TODO share some logic with reportable
my $list = join , @tickets.map: {

0 comments on commit 5660439

Please sign in to comment.