mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 06:00:21 +08:00
dev: update release notes generator
This commit is contained in:
parent
803f440d55
commit
4085d508b0
@ -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>}
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user