Log matched and moved overdue cards in WorkflowRunner
Build package / php-lint (8.2) (push) Successful in 48s
Build package / php-lint (8.3) (push) Successful in 43s
Build package / php-lint (8.4) (push) Successful in 34s
Build package / php-lint (8.5) (push) Successful in 34s
Build package / xml-lint (push) Successful in 12s
Build package / unit-tests (push) Successful in 37s
Build package / package (push) Successful in 1m0s
Build package / php-lint (8.2) (push) Successful in 48s
Build package / php-lint (8.3) (push) Successful in 43s
Build package / php-lint (8.4) (push) Successful in 34s
Build package / php-lint (8.5) (push) Successful in 34s
Build package / xml-lint (push) Successful in 12s
Build package / unit-tests (push) Successful in 37s
Build package / package (push) Successful in 1m0s
Adds an info-level log line when a card passes a workflow's overdue/ filter checks, and another once the move to the target stack succeeds - so a run can be traced per card/workflow in the log, filterable by the app id.
This commit is contained in:
@@ -176,6 +176,14 @@ class WorkflowRunner {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->logger->info('Card {card} ("{title}") matches workflow {id}; moving to stack {target}.', [
|
||||||
|
'app' => 'workflow_deck_automation',
|
||||||
|
'card' => $card->getId(),
|
||||||
|
'title' => $card->getTitle(),
|
||||||
|
'id' => $workflow->getId(),
|
||||||
|
'target' => $workflow->getTargetStackId(),
|
||||||
|
]);
|
||||||
|
|
||||||
if (!$this->moveCard($workflow, $card)) {
|
if (!$this->moveCard($workflow, $card)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -254,6 +262,14 @@ class WorkflowRunner {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->logger->info('Moved card {card} ("{title}") to stack {target} for workflow {id}.', [
|
||||||
|
'app' => 'workflow_deck_automation',
|
||||||
|
'card' => $card->getId(),
|
||||||
|
'title' => $card->getTitle(),
|
||||||
|
'target' => $workflow->getTargetStackId(),
|
||||||
|
'id' => $workflow->getId(),
|
||||||
|
]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user