From 2d3b4de24c1e0645ef1ca61aa1c25cbe3be4593e Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Wed, 2 Aug 2023 09:59:04 +0300 Subject: [PATCH] CI: Fix theme preview workflow (Attempt 2) (#3034) --- scripts/preview-theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/preview-theme.js b/scripts/preview-theme.js index f0d4268a..8e2f0041 100644 --- a/scripts/preview-theme.js +++ b/scripts/preview-theme.js @@ -389,7 +389,7 @@ export const run = async () => { // Retrieve the PR diff and preview-theme comment. debug("Retrieve PR diff..."); - const res = await OCTOKIT.pulls.get({ + const res = await OCTOKIT.rest.pulls.get({ owner: OWNER, repo: REPO, pull_number: PULL_REQUEST_ID,