Condense each moved card to one sentence in the mail
Build package / xml-lint (push) Successful in 1m36s
Build package / php-lint (8.5) (push) Successful in 3m20s
Build package / php-lint (8.4) (push) Successful in 3m26s
Build package / unit-tests (push) Successful in 3m28s
Build package / package (push) Canceled after 21s
Build package / xml-lint (push) Successful in 1m36s
Build package / php-lint (8.5) (push) Successful in 3m20s
Build package / php-lint (8.4) (push) Successful in 3m26s
Build package / unit-tests (push) Successful in 3m28s
Build package / package (push) Canceled after 21s
Drops the workflow name; the mail only says which card moved where. Bumps to 35.2.1.
This commit is contained in:
1 parent
860e8b7bbb
commit
30e644a001
3 files changed
+5
-8
No files matched your search
@@ -100,14 +100,11 @@ class NotificationMailer {
|
||||
private function addCard(IEMailTemplate $template, Workflow $workflow, Card $card, array $targets): void {
|
||||
// Single-argument addBodyText() runs htmlspecialchars() itself, so
|
||||
// these card-, workflow-, board- and stack-titles (user input) are
|
||||
// safe as-is. The card description is deliberately left out.
|
||||
// safe as-is. The card description and the workflow's name are
|
||||
// deliberately left out — the mail only says what moved where.
|
||||
$template->addBodyText(sprintf(
|
||||
'Die Karte „%1$s“ wurde verschoben, weil sie überfällig ist (Workflow „%2$s“).',
|
||||
'„%1$s“ (Board „%2$s“) ist überfällig und wurde von „%3$s“ nach „%4$s“ verschoben.',
|
||||
$card->getTitle(),
|
||||
$workflow->getTitle(),
|
||||
));
|
||||
$template->addBodyText(sprintf(
|
||||
'Board „%1$s“: von „%2$s“ nach „%3$s“ verschoben.',
|
||||
$targets['board'],
|
||||
$targets['sourceStack'],
|
||||
$targets['targetStack'],
|
||||
|
||||
Reference in new issue
Block a user