mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: debug getDraftRelease call (#33073)
This commit is contained in:
@@ -38,7 +38,10 @@ async function getDraftRelease (version, skipValidation) {
|
||||
const releaseInfo = await octokit.repos.listReleases({
|
||||
owner: 'electron',
|
||||
repo: targetRepo
|
||||
}).catch(err => {
|
||||
console.error(`Failed to fetch releases: ${err}`);
|
||||
});
|
||||
console.log('releaseInfo: ', releaseInfo);
|
||||
|
||||
const versionToCheck = version || pkgVersion;
|
||||
const drafts = releaseInfo.data.filter(release => {
|
||||
@@ -46,6 +49,7 @@ async function getDraftRelease (version, skipValidation) {
|
||||
});
|
||||
|
||||
const draft = drafts[0];
|
||||
console.log('drafts: ', drafts);
|
||||
if (!skipValidation) {
|
||||
failureCount = 0;
|
||||
check(drafts.length === 1, 'one draft exists', true);
|
||||
|
||||
Reference in New Issue
Block a user