File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export const robot = (app: Probot) => {
46
46
const chat = await loadChat ( context ) ;
47
47
48
48
if ( ! chat ) {
49
+ console . log ( 'Chat initialized fialed' ) ;
49
50
return 'no chat' ;
50
51
}
51
52
@@ -56,6 +57,7 @@ export const robot = (app: Probot) => {
56
57
pull_request . locked ||
57
58
pull_request . draft
58
59
) {
60
+ console . log ( 'invalid event paylod' ) ;
59
61
return 'invalid event paylod' ;
60
62
}
61
63
@@ -65,6 +67,7 @@ export const robot = (app: Probot) => {
65
67
( ! pull_request . labels ?. length ||
66
68
pull_request . labels . every ( ( label ) => label . name !== target_label ) )
67
69
) {
70
+ console . log ( 'no target label attached' ) ;
68
71
return 'no target label attached' ;
69
72
}
70
73
@@ -96,6 +99,7 @@ export const robot = (app: Probot) => {
96
99
}
97
100
98
101
if ( ! changedFiles ?. length ) {
102
+ console . log ( 'no target label attached' ) ;
99
103
return 'no change' ;
100
104
}
101
105
@@ -110,6 +114,9 @@ export const robot = (app: Probot) => {
110
114
}
111
115
112
116
if ( ! patch || patch . length > MAX_PATCH_COUNT ) {
117
+ console . log (
118
+ `${ file . filename } skipped caused by its diff is too large`
119
+ ) ;
113
120
continue ;
114
121
}
115
122
const res = await chat ?. codeReview ( patch ) ;
You can’t perform that action at this time.
0 commit comments