Skip to content

Commit

Permalink
Update client
Browse files Browse the repository at this point in the history
  • Loading branch information
tzkhan committed Oct 25, 2020
1 parent 49dc30c commit 3d43630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d43630

Please sign in to comment.