chore: Only use plan summary in comment #14

Merged
Peter merged 5 commits from pgi-only-comment-summary into main 2026-04-07 10:18:25 +02:00
4 changed files with 12 additions and 4 deletions

View file

@ -87,11 +87,13 @@ jobs:
<details><summary>Show Apply</summary>
```
${{ steps.apply.outputs.stdout }}
APPLY_PLACEHOLDER
```
</details>
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 \

View file

@ -88,11 +88,13 @@ jobs:
<details><summary>Show Apply</summary>
```
${{ steps.apply.outputs.stdout }}
APPLY_PLACEHOLDER
```
</details>
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 \

View file

@ -74,11 +74,13 @@ jobs:
<details><summary>Show Plan</summary>
```
${{ steps.plan.outputs.stdout }}
PLAN_PLACEHOLDER
```
</details>
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 \

View file

@ -75,11 +75,13 @@ jobs:
<details><summary>Show Plan</summary>
```
${{ steps.plan.outputs.stdout }}
PLAN_PLACEHOLDER
```
</details>
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 \