Merge pull request #3593 from woocommerce/wordpress-playground-update-paths-part-4
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled

Fix context object construction in Playground workflow script
This commit is contained in:
Danny Dudzic 2025-08-12 20:09:00 +02:00 committed by GitHub
commit 9bd47e8948
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}
}
}
};