Skip to content

Commit

Permalink
chore: fixed pull request length check
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Nov 26, 2024
1 parent f81051c commit 21d9f55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ async function shouldSkipPullRequest(
{ owner, repo, issueNumber }: { owner: string; repo: string; issueNumber: number },
reviewDelayTolerance: string
) {
if (!pullRequests.size) {
return false;
}
if (pullRequests.values().some((o) => o.state === "CHANGES_REQUESTED")) {
return false;
} else if (!pullRequests.values().some((o) => o.state === "APPROVED")) {
Expand Down

0 comments on commit 21d9f55

Please sign in to comment.