Skip to content

Commit

Permalink
Use octokit-rest for the PR comments client.
Browse files Browse the repository at this point in the history
  • Loading branch information
febuiles committed Oct 9, 2023
1 parent e6d6bad commit 76b050a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/comment-pr.ts
Original file line number Diff line number Diff line change
@@ -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}))
)
Expand Down

0 comments on commit 76b050a

Please sign in to comment.