Skip to content

Commit fce1927

Browse files
committed
move the return block down as requested
1 parent 674326c commit fce1927

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ async function commentOnMergablePRs() {
7878
process.exit(0)
7979
}
8080

81+
if (!codeowners.users.length) {
82+
console.log("This PR does not have any code-owners")
83+
process.exit(0)
84+
}
85+
8186
const ourSignature = "<!-- Message About Merging -->"
8287
const comments = await octokit.issues.listComments({ ...thisRepo, issue_number: pr.number })
8388
const existingComment = comments.data.find(c => c.body.includes(ourSignature))

0 commit comments

Comments
 (0)