From a7ad1647aa2ab35d04eb5e0912556cbcfc17dfc0 Mon Sep 17 00:00:00 2001
From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com>
Date: Fri, 3 Apr 2026 10:11:09 +0200
Subject: [PATCH 1/5] chore: Only use plan summary in comment
---
.forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
index fd629b8..686ca56 100644
--- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
+++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
@@ -74,11 +74,13 @@ jobs:
Show Plan
```
- ${{ steps.plan.outputs.stdout }}
+ PLAN_PLACEHOLDER
```
run: |
+ filtered_plan=$(echo "${{ steps.plan.outputs.stdout }}" | awk '/Refreshing state/{found=0} /^$/{if(!found)print; next} {if(found)print} /Refreshing state/{found=1}' | sed '/./,$!d')
+ COMMENT_BODY="${COMMENT_BODY//'PLAN_PLACEHOLDER'/$filtered_plan}"
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
existing_comment=$(curl -s \
From cd62f3f56122ee097587db2547a664a8e6868118 Mon Sep 17 00:00:00 2001
From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com>
Date: Fri, 3 Apr 2026 10:14:52 +0200
Subject: [PATCH 2/5] chore: Tweak sed command
---
.forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
index 686ca56..24f5731 100644
--- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
+++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
@@ -79,7 +79,7 @@ jobs:
run: |
- filtered_plan=$(echo "${{ steps.plan.outputs.stdout }}" | awk '/Refreshing state/{found=0} /^$/{if(!found)print; next} {if(found)print} /Refreshing state/{found=1}' | sed '/./,$!d')
+ filtered_plan=$(echo "${{ steps.plan.outputs.stdout }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | sed '/./,$!d')
COMMENT_BODY="${COMMENT_BODY//'PLAN_PLACEHOLDER'/$filtered_plan}"
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
From ff51d7f571f741529b943c7251cd8cb461587065 Mon Sep 17 00:00:00 2001
From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com>
Date: Fri, 3 Apr 2026 10:18:34 +0200
Subject: [PATCH 3/5] chore: Modify resource to check output
---
pve01.wheatley.in/k8s-wheatley/main.tf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve01.wheatley.in/k8s-wheatley/main.tf b/pve01.wheatley.in/k8s-wheatley/main.tf
index 08ebb8a..f32c594 100644
--- a/pve01.wheatley.in/k8s-wheatley/main.tf
+++ b/pve01.wheatley.in/k8s-wheatley/main.tf
@@ -57,7 +57,7 @@ locals {
workers = {
cpu = 8
- memory = 8
+ memory = 16
disk = 40
storagepool = "nvme-fastpool"
talos_version = local.talos_version
From 927f6f3d66f3303813b5d6d296ad58f6472b3b85 Mon Sep 17 00:00:00 2001
From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com>
Date: Fri, 3 Apr 2026 10:43:15 +0200
Subject: [PATCH 4/5] chore: Revert resource modification
---
pve01.wheatley.in/k8s-wheatley/main.tf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve01.wheatley.in/k8s-wheatley/main.tf b/pve01.wheatley.in/k8s-wheatley/main.tf
index f32c594..08ebb8a 100644
--- a/pve01.wheatley.in/k8s-wheatley/main.tf
+++ b/pve01.wheatley.in/k8s-wheatley/main.tf
@@ -57,7 +57,7 @@ locals {
workers = {
cpu = 8
- memory = 16
+ memory = 8
disk = 40
storagepool = "nvme-fastpool"
talos_version = local.talos_version
From 83c11117fe9146f9608c8bd91952e3dc169e5922 Mon Sep 17 00:00:00 2001
From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com>
Date: Tue, 7 Apr 2026 10:09:36 +0200
Subject: [PATCH 5/5] feat: Filter summary in all workflows
---
.forgejo/workflows/tofu-apply-k8s-wheatley.yaml | 4 +++-
.forgejo/workflows/tofu-apply-templates.yaml | 4 +++-
.forgejo/workflows/tofu-plan-templates.yaml | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml b/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml
index 3ececfc..199cfff 100644
--- a/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml
+++ b/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml
@@ -87,11 +87,13 @@ jobs:
Show Apply
```
- ${{ steps.apply.outputs.stdout }}
+ APPLY_PLACEHOLDER
```
run: |
+ filtered_apply=$(echo "${{ steps.apply.outputs.stdout }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | sed '/./,$!d')
+ COMMENT_BODY="${COMMENT_BODY//'APPLY_PLACEHOLDER'/$filtered_apply}"
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
existing_comment=$(curl -s \
diff --git a/.forgejo/workflows/tofu-apply-templates.yaml b/.forgejo/workflows/tofu-apply-templates.yaml
index fb94da2..b199f64 100644
--- a/.forgejo/workflows/tofu-apply-templates.yaml
+++ b/.forgejo/workflows/tofu-apply-templates.yaml
@@ -88,11 +88,13 @@ jobs:
Show Apply
```
- ${{ steps.apply.outputs.stdout }}
+ APPLY_PLACEHOLDER
```
run: |
+ filtered_apply=$(echo "${{ steps.apply.outputs.stdout }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | sed '/./,$!d')
+ COMMENT_BODY="${COMMENT_BODY//'APPLY_PLACEHOLDER'/$filtered_apply}"
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
existing_comment=$(curl -s \
diff --git a/.forgejo/workflows/tofu-plan-templates.yaml b/.forgejo/workflows/tofu-plan-templates.yaml
index 4ac2aeb..2bab873 100644
--- a/.forgejo/workflows/tofu-plan-templates.yaml
+++ b/.forgejo/workflows/tofu-plan-templates.yaml
@@ -75,11 +75,13 @@ jobs:
Show Plan
```
- ${{ steps.plan.outputs.stdout }}
+ PLAN_PLACEHOLDER
```
run: |
+ filtered_plan=$(echo "${{ steps.plan.outputs.stdout }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | sed '/./,$!d')
+ COMMENT_BODY="${COMMENT_BODY//'PLAN_PLACEHOLDER'/$filtered_plan}"
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
existing_comment=$(curl -s \