Skip to content

fix(automation): staging bring-up follow-ups (email rendering, scan summary, deploy robustness, tags)#70

Merged
derrickmehaffy merged 4 commits into
developfrom
fix/automation-staging-followups
Jun 30, 2026
Merged

fix(automation): staging bring-up follow-ups (email rendering, scan summary, deploy robustness, tags)#70
derrickmehaffy merged 4 commits into
developfrom
fix/automation-staging-followups

Conversation

@derrickmehaffy

Copy link
Copy Markdown
Member

What & why

Follow-up fixes to #65 (multi-env automation deploy), found while bringing the workflows up on the staging n8n instance. All four are scoped to apps/automation.

Changes

  • feat: tag deployed workflowsworkflows:deploy now tags every deployed workflow with community-hub + the environment tag (staging, or production when the namespace is strapi) via PUT /workflows/:id/tags, creating the tags if missing.

  • fix: security-scan summary reads stage results from Format nodes — Build Summary read the Wait for All Stages merge output (the combined PATCH responses, which have no stage/result keys), so every summary field came out null. It now reads the dependency + AI results directly from Format Package Scan Result / Format AI Result; the merge stays only to gate timing.

  • fix: deploy re-links before PUT + tags only deployed workflows — re-link executeWorkflow → render-email / errorWorkflow → error-handler to the target's ids before the create/update (push referenced sub-workflows first; seed ids from existing). n8n refuses to publish an active workflow whose executeWorkflow target isn't published, so the old relink-in-a-second-pass failed on re-deploys against active instances. Also scope the tag pass to deployed workflows only, so pre-existing workflows on a shared instance aren't tagged/overwritten.

  • fix: render email body markdown to HTML — the email-template body is Strapi richtext (markdown), but render-email dropped it raw into the HTML shell, so **bold**, > blockquotes, and paragraph breaks showed as literal text. Added a markdown→HTML converter in Wrap In Branded Shell (bold / italic / inline-code / blockquote / headings / paragraphs + bare-URL autolink), HTML-escaping first so interpolated reviewer feedback can't inject markup.

Verified

Deployed to the staging n8n via workflows:deploy (12 updated, 0 failed, credentials preserved); security-scan now writes a populated summary and lifecycle emails render formatted. Tracking the AI-source-fetch gap separately in #69.

🤖 Generated with Claude Code

derrickmehaffy and others added 4 commits June 30, 2026 09:04
…loy script

workflows:deploy now tags every workflow with community-hub plus the environment tag (staging, or production when namespace=strapi) via PUT /workflows/:id/tags, creating any missing tag. Applied to the staging set.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…t nodes

Build Summary read the 'Wait for All Stages' merge output (which combines the two PATCH responses and has no stage/result keys), so its pick() returned null for both stages and every summary field came out null. Read the dependency + AI results directly from the Format Package Scan Result / Format AI Result nodes instead; the merge stays only to gate timing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…flows

Re-link executeWorkflow/errorWorkflow references to the target's ids BEFORE the create/update (push referenced sub-workflows first, seed ids from existing) — n8n rejects publishing an active workflow whose executeWorkflow target isn't published, so the old relink-in-a-second-pass failed on re-deploys against active instances. Also scope the tag pass to the deployed workflows only, so pre-existing workflows on a shared instance aren't tagged/overwritten.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The email-template body is Strapi richtext (markdown), but render-email dropped it raw into the HTML shell, so **bold**, > blockquotes, and paragraph breaks showed as literal text. Add a markdown->HTML converter in 'Wrap In Branded Shell' (bold/italic/inline-code/blockquote/headings/paragraphs + bare-URL autolink), HTML-escaping first so interpolated reviewer feedback can't inject markup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
community-web Ready Ready Preview, Comment Jun 30, 2026 5:45pm

Request Review

@derrickmehaffy derrickmehaffy merged commit c88a2cc into develop Jun 30, 2026
3 checks passed
@derrickmehaffy derrickmehaffy deleted the fix/automation-staging-followups branch June 30, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant