From 0456f5bbbd60c402b7aeaa67c19e368721c733b3 Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Tue, 12 Aug 2025 20:04:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20context=20object=20constru?= =?UTF-8?q?ction=20in=20Playground=20workflow=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-playground-demo.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-playground-demo.yml b/.github/workflows/pr-playground-demo.yml index aaac09d76..aecd2c631 100644 --- a/.github/workflows/pr-playground-demo.yml +++ b/.github/workflows/pr-playground-demo.yml @@ -142,10 +142,21 @@ jobs: process.env.ARTIFACT_NAME = artifact_name; const updatedContext = { - ...context, + repo: { + owner: context.repo.owner, + repo: context.repo.repo + }, issue: { - ...context.issue, number: parseInt(pr_number, 10) + }, + runId: context.runId, + payload: { + pull_request: { + number: parseInt(pr_number, 10), + head: { + sha: context.sha + } + } } };