diff --git a/scripts/preview-theme.js b/scripts/preview-theme.js index f0d4268ad642f..8e2f0041e11a2 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,