mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: result => result.data (4-0-x) (#16275)
This commit is contained in:
committed by
Michelle Tilley
parent
ada400514a
commit
adf5d60f41
@@ -61,14 +61,14 @@ async function deleteDraft (releaseId, targetRepo) {
|
||||
id: parseInt(releaseId, 10)
|
||||
})
|
||||
console.log(result)
|
||||
if (!result.draft) {
|
||||
if (!result.data.draft) {
|
||||
console.log(`${fail} published releases cannot be deleted.`)
|
||||
return false
|
||||
} else {
|
||||
await github.repos.deleteRelease({
|
||||
owner: 'electron',
|
||||
repo: targetRepo,
|
||||
release_id: result.id
|
||||
release_id: result.data.id
|
||||
})
|
||||
}
|
||||
console.log(`${pass} successfully deleted draft with id ${releaseId} from ${targetRepo}`)
|
||||
|
||||
Reference in New Issue
Block a user