Skip to content

Commit

Permalink
ci(actions): use .getOctokit() in place of .GitHub() (#15083)
Browse files Browse the repository at this point in the history
* ci(cache): turn off caching in the merge queue

* ci(actions): use .getOctokit() in place of .GitHub()
  • Loading branch information
tay1orjones authored Nov 1, 2023
1 parent 2319ad3 commit 00660be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actions/add-review-labels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function run() {
required: true,
});
const autoLabelUsers = core.getInput('AUTO_LABEL_USERS').split(',');
const octokit = new github.GitHub(token);
const octokit = new github.getOctokit(token);
const { pull_request: pullRequest, repository, review } = context.payload;
const { state, draft } = pullRequest;

Expand Down
2 changes: 1 addition & 1 deletion actions/issues/src/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function run() {
const token = core.getInput('GITHUB_TOKEN', {
required: true,
});
const octokit = new github.GitHub(token);
const octokit = new github.getOctokit(token);
const { issue } = context.payload;

if (issue.pull_request) {
Expand Down

0 comments on commit 00660be

Please sign in to comment.