зеркало из https://github.com/electron/electron.git
chore: fix falsy comments edge case in release notes (#16720)
This commit is contained in:
Родитель
af64140100
Коммит
a9991f5451
|
@ -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'
|
||||
|
|
Загрузка…
Ссылка в новой задаче