diff --git a/dist/index.js b/dist/index.js index 3d1e3568..b7169636 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1347,8 +1347,8 @@ async function run() { return; } - const client = new github.GitHub(inputs.token); - const response = await client.pulls.update(request); + const octokit = github.getOctokit(inputs.token); + const response = await octokit.pulls.update(request); core.info(`Response: ${response.status}`); if (response.status !== 200) { diff --git a/index.js b/index.js index 9bdf8bfa..4eab9ab5 100644 --- a/index.js +++ b/index.js @@ -135,8 +135,8 @@ async function run() { return; } - const client = new github.GitHub(inputs.token); - const response = await client.pulls.update(request); + const octokit = github.getOctokit(inputs.token); + const response = await octokit.pulls.update(request); core.info(`Response: ${response.status}`); if (response.status !== 200) {