File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed
Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff 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
8398const 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
You can’t perform that action at this time.
0 commit comments