UNPKG

semantic-release-gitmoji

Version:

Different from conventional changelog, Gitmoji commits are used to determine a release type and generate release notes.

18 lines (12 loc) 523 B
const debug = require('./helper/debug') const getConfig = require('./helper/get-config') const ReleaseNotes = require('./release-notes') module.exports = async function generateNotes (pluginConfig, context) { const { logger } = context const config = getConfig(pluginConfig, context) debug('[Generate notes] Effective config: %o', config) const notes = ReleaseNotes.get(context, config.releaseNotes) await notes.updateContext(context) logger.log('Release notes are generated.') return notes.toString() }