Use octokit-rest for the PR comments client.

This commit is contained in:
Federico Builes
2023-10-09 13:34:14 +02:00
parent e6d6badddb
commit 76b050a607
+3 -2
View File
@@ -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}))
)