|
@@ -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;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
];
|
|
];
|
|
|
|
|