Skip to content

Commit

Permalink
move the return block down as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Apr 28, 2024
1 parent 674326c commit fce1927
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ async function commentOnMergablePRs() {
process.exit(0)
}

if (!codeowners.users.length) {
console.log("This PR does not have any code-owners")
process.exit(0)
}

const ourSignature = "<!-- Message About Merging -->"
const comments = await octokit.issues.listComments({ ...thisRepo, issue_number: pr.number })
const existingComment = comments.data.find(c => c.body.includes(ourSignature))
Expand Down

0 comments on commit fce1927

Please sign in to comment.