Skip to content

Commit 9262e58

Browse files
committed
Fix script to avoid check returning true vacuously
1 parent 0a9004d commit 9262e58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/create-porting-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
5454
const closingIssues = result.repository.pullRequest.closingIssuesReferences.nodes;
5555
56-
if (closingIssues.every(issue => issue.body?.includes("AUTO-GENERATED-ISSUE"))) {
56+
if (closingIssues.length > 0 && closingIssues.every(issue => issue.body?.includes("AUTO-GENERATED-ISSUE"))) {
5757
return;
5858
}
5959

0 commit comments

Comments
 (0)