diff --git a/tools/gen-release-notes.js b/tools/gen-release-notes.js index 41df639a..c859a5f0 100644 --- a/tools/gen-release-notes.js +++ b/tools/gen-release-notes.js @@ -69,15 +69,30 @@ const scopes = { backend: { label: 'Backend' }, + api: { + label: 'API', + }, gui: { label: 'GUI' }, + puterjs: { + label: 'Puter JS' + }, tools: { ignore: true, }, security: { label: 'Security', }, + ai: { + label: 'AI', + }, + putility: { + label: 'Putility', + }, + docker: { + label: 'Docker', + }, }; const scope_aliases = { @@ -92,10 +107,29 @@ const complicated_cases = [ * @type {Array} */ function fix_i18n ({ commit, meta }) { - if ( meta.type === 'fix' && meta.scope === 'i18n' ) { + if ( meta.scope === 'i18n' ) { meta.type = 'i18n'; meta.scope = undefined; } + }, + function deps_scope ({ commit, meta }) { + if ( meta.scope === 'deps' ) { + meta.type = 'chore'; + meta.scope = undefined; + } + }, + function puterai_is_ai ({ commit, meta }) { + const ai_scopes = ['puterai', 'puerai', 'puter-ai']; + if ( ai_scopes.includes(meta.scope) ) { + meta.scope = 'ai'; + } + }, + function doc_scopes ({ commit, meta }) { + const doc_scopes = ['readme']; + if ( doc_scopes.includes(meta.scope) ) { + meta.type = 'doc'; + meta.scope = undefined; + } } ];