Skip to content

Commit

Permalink
2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Feb 26, 2024
1 parent 19528c0 commit b71c44f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30817,7 +30817,7 @@ var __webpack_exports__ = {};


const core = __nccwpck_require__(2186)
const { GitHub, context } = __nccwpck_require__(5438)
const github = __nccwpck_require__(5438)

const main = async () => {
const token = core.getInput('github-token')
Expand All @@ -30829,12 +30829,12 @@ const main = async () => {
const [owner, repo] = repoString.split('/')
repoObject = { owner, repo }
} else {
repoObject = context.repo
repoObject = github.context.repo
}

const octokit = new GitHub(token)
const octokit = github.getOctokit(token)

await octokit.pulls.createReview({
await octokit.rest.pulls.createReview({
...repoObject,
pull_number: number,
event: 'APPROVE'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "approve-pull-request-action",
"private": true,
"version": "2.0.5",
"version": "2.0.6",
"license": "MIT",
"description": "GitHub Action for approving pull requests",
"repository": "juliangruber/approve-pull-request-action",
Expand Down

0 comments on commit b71c44f

Please sign in to comment.