Dashboardpublishpublish terminal reporting

publish terminal reporting

Category: gotcha
Confidence: 0.80
ID: 01a08b24-28f3-7798-bea1-757bef52e8f1
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 0A2neX6Lse1iBFBA4
Created: 2026-08-27 15:29:39
Updated: 2026-09-10 11:46:37

Content

Trap: parsing PUBLISH_ARGS at module load or using separate always() steps for cancelled, failure, and success looks straightforward, but missing inputs can suppress reporting and cancellation predicates can overlap. Fix: parse inside main() with a warning and fallback, then use one always() reporter that derives exactly one status from the Craft outcome. update-issue.js uses undefined to skip target restoration; post-result.js uses {} so reporting continues.

Move to: