mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
chore: fix falsy comments edge case in release notes (#16720)
This commit is contained in:
@@ -65,9 +65,7 @@ const setPullRequest = (commit, owner, repo, number) => {
|
||||
|
||||
const getNoteFromClerk = async (number, owner, repo) => {
|
||||
const comments = await getComments(number, owner, repo)
|
||||
if (!comments && !comments.data) {
|
||||
return
|
||||
}
|
||||
if (!comments || !comments.data) return
|
||||
|
||||
const CLERK_LOGIN = 'release-clerk[bot]'
|
||||
const PERSIST_LEAD = '**Release Notes Persisted**\n\n'
|
||||
|
||||
Reference in New Issue
Block a user