Skip to content

Commit

Permalink
Update review_pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
shmishra99 authored Sep 30, 2024
1 parent 6d33726 commit 1a9a8ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/review_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
const prNumber = pr.number;
console.log(`PR number: ${prNumber}`);
console.log("PR details: ", pr);
const reviews = await github.rest.pulls.reviews({
const reviews = await github.rest.pulls.listReviews({
owner,
repo,
pull_number: pr.number
pr.number
});
const approvedReview = reviews.data.find(review => review.state === "APPROVED");
if (approvedReview) {
Expand Down

0 comments on commit 1a9a8ed

Please sign in to comment.