Fix ChangeLog Generator

This commit is contained in:
Eric Fennis
2021-12-06 17:28:49 +01:00
parent 58c0e3f16f
commit 6b79185cc6
+5 -2
View File
@@ -61,7 +61,7 @@ const cliArguments = getArgumentOptions(process.argv.slice(2));
name: nameRegex && nameRegex[2] ? nameRegex[2] : null,
title: pullNumber && pullNumber[1] ? pullNumber[1].trim() : null,
pullNumber: pullNumber && pullNumber[2] ? pullNumber[2].trim() : null,
author: pr.author.login,
author: pr.author?.login || 'unknown',
sha,
status,
};
@@ -84,4 +84,7 @@ const cliArguments = getArgumentOptions(process.argv.slice(2));
} catch (error) {
throw new Error(error);
}
})();
})().catch(error => {
console.error(error);
process.exit(1);
});