Skip to content

Commit 4085d50

Browse files
committed
dev: update release notes generator
1 parent 803f440 commit 4085d50

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

tools/gen-release-notes.js

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,30 @@ const scopes = {
6969
backend: {
7070
label: 'Backend'
7171
},
72+
api: {
73+
label: 'API',
74+
},
7275
gui: {
7376
label: 'GUI'
7477
},
78+
puterjs: {
79+
label: 'Puter JS'
80+
},
7581
tools: {
7682
ignore: true,
7783
},
7884
security: {
7985
label: 'Security',
8086
},
87+
ai: {
88+
label: 'AI',
89+
},
90+
putility: {
91+
label: 'Putility',
92+
},
93+
docker: {
94+
label: 'Docker',
95+
},
8196
};
8297

8398
const scope_aliases = {
@@ -92,10 +107,29 @@ const complicated_cases = [
92107
* @type {Array<function>}
93108
*/
94109
function fix_i18n ({ commit, meta }) {
95-
if ( meta.type === 'fix' && meta.scope === 'i18n' ) {
110+
if ( meta.scope === 'i18n' ) {
96111
meta.type = 'i18n';
97112
meta.scope = undefined;
98113
}
114+
},
115+
function deps_scope ({ commit, meta }) {
116+
if ( meta.scope === 'deps' ) {
117+
meta.type = 'chore';
118+
meta.scope = undefined;
119+
}
120+
},
121+
function puterai_is_ai ({ commit, meta }) {
122+
const ai_scopes = ['puterai', 'puerai', 'puter-ai'];
123+
if ( ai_scopes.includes(meta.scope) ) {
124+
meta.scope = 'ai';
125+
}
126+
},
127+
function doc_scopes ({ commit, meta }) {
128+
const doc_scopes = ['readme'];
129+
if ( doc_scopes.includes(meta.scope) ) {
130+
meta.type = 'doc';
131+
meta.scope = undefined;
132+
}
99133
}
100134
];
101135

0 commit comments

Comments
 (0)