Skip to content

Commit

Permalink
use the v7 github-script
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Sep 2, 2024
1 parent 333f0fb commit e246d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/registry-updates-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
- name: Check for PR approvals
id: check-approval
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { owner, repo } = context.issue;
const pull_number = context.payload.pull_request.number;
console.log("Owner and repo and pull_number", owner, repo, pull_number);
const { data: reviews } = await github.pulls.listReviews({
const { data: reviews } = await github.rest.pulls.listReviews({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
Expand Down

0 comments on commit e246d71

Please sign in to comment.