Skip to content

Commit

Permalink
dev: update release notes generator
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Jan 7, 2025
1 parent 803f440 commit 4085d50
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion tools/gen-release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -92,10 +107,29 @@ const complicated_cases = [
* @type {Array<function>}
*/
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;
}
}
];

Expand Down

0 comments on commit 4085d50

Please sign in to comment.