mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
* Request release intro automatically * Removed useless assignment * Better name for field
20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
// Packages
|
|
const {prompt} = require('inquirer');
|
|
|
|
module.exports = async markdown => {
|
|
const answers = await prompt([{
|
|
name: 'intro',
|
|
message: 'One-Line Release Summary'
|
|
}]);
|
|
|
|
const {intro} = answers;
|
|
|
|
if (intro === '') {
|
|
console.error('Please specify a release summary!');
|
|
|
|
// eslint-disable-next-line unicorn/no-process-exit
|
|
process.exit(1);
|
|
}
|
|
|
|
return `${intro}\n\n${markdown}`;
|
|
};
|