From a72472f38cefd041308cc18b44837a260f20e6df Mon Sep 17 00:00:00 2001 From: Ryan Cormack Date: Wed, 5 Nov 2025 11:05:43 +0000 Subject: [PATCH 1/2] fix: remove broken agent --- .../motorway-terraform-agent/agent.json | 16 ---------------- .../motorway-terraform-agent/index.md | 15 --------------- .../motorway-terraform-agent/prompt.md | 10 ---------- 3 files changed, 41 deletions(-) delete mode 100644 content/agents/infrastructure/motorway-terraform-agent/agent.json delete mode 100644 content/agents/infrastructure/motorway-terraform-agent/index.md delete mode 100644 content/agents/infrastructure/motorway-terraform-agent/prompt.md diff --git a/content/agents/infrastructure/motorway-terraform-agent/agent.json b/content/agents/infrastructure/motorway-terraform-agent/agent.json deleted file mode 100644 index ed90401..0000000 --- a/content/agents/infrastructure/motorway-terraform-agent/agent.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/aws/amazon-q-developer-cli/main/schemas/agent-v1.json", - "name": "motorway-terraform-agent", - "description": "You're an agent to help write terraform", - "tools": ["fs_read", "fs_write", "execute_bash", "@mw-dev"], - "mcpServers": { - "mw-dev": { - "command": "npx @motorway/mw-dev-mcp", - "args": [], - "env": {}, - "disabled": false, - "timeout": 120000 - } - }, - "useLegacyMcpJson": false -} diff --git a/content/agents/infrastructure/motorway-terraform-agent/index.md b/content/agents/infrastructure/motorway-terraform-agent/index.md deleted file mode 100644 index 9804bfd..0000000 --- a/content/agents/infrastructure/motorway-terraform-agent/index.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -authors: - - rcormack -categories: - - infrastructure -description: You're an agent to help write terraform -draft: false -images: [] -title: Motorway Terraform Agent -aliases: ["/agents/agent/motorway-terraform-agent-cf85c037"] -createdAt: 2025-09-02T10:18:23.193Z -updatedAt: 2025-09-02T10:18:23.193Z -tags: ["terraform", "infrastructure", "iac", "automation"] -featured: true ---- diff --git a/content/agents/infrastructure/motorway-terraform-agent/prompt.md b/content/agents/infrastructure/motorway-terraform-agent/prompt.md deleted file mode 100644 index fc6dd45..0000000 --- a/content/agents/infrastructure/motorway-terraform-agent/prompt.md +++ /dev/null @@ -1,10 +0,0 @@ -You are a senior software engineering specializing in devops and terraform. -You have 2 key responsibilities: - -1. Ensuring that the current Terraform meets the guidelines and requirements -2. Adding new Terraform that the user asks for, ensuring it aligns to Motorway guidelines. - The user will tell you which one to help focus on. - -# Terraform Guidelines - -## Resource and Module naming From c6c02b605be5e77425c5309b7c9301e4361c2090 Mon Sep 17 00:00:00 2001 From: Ryan Cormack Date: Thu, 6 Nov 2025 09:20:34 +0000 Subject: [PATCH 2/2] fix: Update workflow to handle files deletes - If files are deleted, they won't exist on disk and then there are no authors to check in the markdown files --- .github/workflows/content-validation.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/content-validation.yml b/.github/workflows/content-validation.yml index 0e71536..530b777 100644 --- a/.github/workflows/content-validation.yml +++ b/.github/workflows/content-validation.yml @@ -88,11 +88,15 @@ jobs: return Array.from(existingContentAuthors); - name: Request author review - if: steps.author-check.outputs.result != '[]' uses: actions/github-script@v7 with: script: | - const authors = JSON.parse('${{ steps.author-check.outputs.result }}'); + const authors = JSON.parse('${{ steps.author-check.outputs.result }}' || '[]'); + + if (authors.length === 0) { + console.log('No authors to review'); + return; + } await github.rest.pulls.requestReviewers({ owner: context.repo.owner,