File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export async function getCommits({
75
75
// add to the list
76
76
commits [ position ] . push ( commit . hash ) ;
77
77
}
78
- positions . push ( position ) ;
78
+ positions . unshift ( position ) ;
79
79
} else {
80
80
const initMatches = commit . message . match ( / ^ I N I T / ) ;
81
81
if ( initMatches && initMatches . length ) {
@@ -86,7 +86,7 @@ export async function getCommits({
86
86
// add to the list
87
87
commits . INIT . push ( commit . hash ) ;
88
88
}
89
- positions . push ( "INIT" ) ;
89
+ positions . unshift ( "INIT" ) ;
90
90
}
91
91
}
92
92
}
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ export function validateCommitOrder(positions: string[]): boolean {
13
13
current = { level : 0 , step : 0 } ;
14
14
return ;
15
15
} else {
16
- const levelMatch = position . match ( / ^ L ( [ 0 - 9 ] ) + $ / ) ;
17
- const stepMatch = position . match ( / ^ L ( [ 0 - 9 ] ) + S ( [ 0 - 9 ] ) + $ / ) ;
16
+ const levelMatch = position . match ( / ^ L ( [ 0 - 9 ] + ) Q ? $ / ) ;
17
+ const stepMatch = position . match ( / ^ L ( [ 0 - 9 ] + ) S ( [ 0 - 9 ] + ) [ Q | A ] ? $ / ) ;
18
18
if ( levelMatch ) {
19
19
// allows next level or step
20
20
const [ _ , levelString ] = levelMatch ;
@@ -28,7 +28,7 @@ export function validateCommitOrder(positions: string[]): boolean {
28
28
current = { level, step } ;
29
29
} else {
30
30
// error
31
- console . error ( `Invalid commit position: ${ position } ` ) ;
31
+ console . warn ( `Invalid commit position: ${ position } ` ) ;
32
32
return ;
33
33
}
34
34
if (
You can’t perform that action at this time.
0 commit comments