Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5794607

Browse files
committed
log commit order warnings
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent907d283 commit5794607

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎src/utils/commitOrder.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ export function validateCommitOrder(positions: string[]): boolean {
4646
previous=current;
4747
});
4848

49-
// TODO: log errors based on index
49+
if(errors.length){
50+
console.warn("Found commit positions out of order");
51+
positions.forEach((position,index)=>{
52+
if(errors.includes(index)){
53+
console.warn(`${position} <-`);
54+
}else{
55+
console.log(position);
56+
}
57+
});
58+
}
5059
return!errors.length;
5160
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp