From 19a845fba0a1dc9b7dfd1783dda5f2fe14022b62 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 14 Jun 2026 15:15:20 +0100 Subject: [PATCH] Fetch current body in CI check (#12927) --- .github/workflows/ci-cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 4fe4098a9e9..c72b642b2e4 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -103,9 +103,13 @@ jobs: env: GH_TOKEN: ${{ github.token }} PR_NUMBER: ${{ github.event.pull_request.number }} - PR_BODY: ${{ github.event.pull_request.body }} run: | set -euo pipefail + # Fetch the body fresh: github.event.pull_request.body is frozen at + # the webhook payload and stale on re-runs after a body edit. + PR_BODY=$( + gh api "repos/${{ github.repository }}/pulls/${PR_NUMBER}" --jq .body + ) added=$( gh api --paginate \ "repos/${{ github.repository }}/pulls/${PR_NUMBER}/files" \