From 76b050a607f625d3153b002cf21e0d50e7a12658 Mon Sep 17 00:00:00 2001 From: Federico Builes Date: Mon, 9 Oct 2023 13:34:14 +0200 Subject: [PATCH] Use octokit-rest for the PR comments client. --- src/comment-pr.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/comment-pr.ts b/src/comment-pr.ts index 6e94a97..ca448db 100644 --- a/src/comment-pr.ts +++ b/src/comment-pr.ts @@ -1,10 +1,11 @@ import * as github from '@actions/github' import * as core from '@actions/core' import * as githubUtils from '@actions/github/lib/utils' -import * as retry from '@octokit/plugin-retry' +import {retry} from '@octokit/plugin-retry' import {RequestError} from '@octokit/request-error' +import {Octokit} from '@octokit/rest' -const retryingOctokit = githubUtils.GitHub.plugin(retry.retry) +const retryingOctokit = Octokit.plugin(retry) const octo = new retryingOctokit( githubUtils.getOctokitOptions(core.getInput('repo-token', {required: true})) )