Explorar o código

dev: update release notes generator

KernelDeimos hai 4 meses
pai
achega
4085d508b0
Modificáronse 1 ficheiros con 35 adicións e 1 borrados
  1. 35 1
      tools/gen-release-notes.js

+ 35 - 1
tools/gen-release-notes.js

@@ -69,15 +69,30 @@ const scopes = {
     backend: {
     backend: {
         label: 'Backend'
         label: 'Backend'
     },
     },
+    api: {
+        label: 'API',
+    },
     gui: {
     gui: {
         label: 'GUI'
         label: 'GUI'
     },
     },
+    puterjs: {
+        label: 'Puter JS'
+    },
     tools: {
     tools: {
         ignore: true,
         ignore: true,
     },
     },
     security: {
     security: {
         label: 'Security',
         label: 'Security',
     },
     },
+    ai: {
+        label: 'AI',
+    },
+    putility: {
+        label: 'Putility',
+    },
+    docker: {
+        label: 'Docker',
+    },
 };
 };
 
 
 const scope_aliases = {
 const scope_aliases = {
@@ -92,10 +107,29 @@ const complicated_cases = [
     * @type {Array<function>}
     * @type {Array<function>}
     */
     */
     function fix_i18n ({ commit, meta }) {
     function fix_i18n ({ commit, meta }) {
-        if ( meta.type === 'fix' && meta.scope === 'i18n' ) {
+        if ( meta.scope === 'i18n' ) {
             meta.type = 'i18n';
             meta.type = 'i18n';
             meta.scope = undefined;
             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;
+        }
     }
     }
 ];
 ];