File tree Expand file tree Collapse file tree 4 files changed +4
-29
lines changed Expand file tree Collapse file tree 4 files changed +4
-29
lines changed Original file line number Diff line number Diff line change 1919 LANGUAGE : English
2020 USE_GITHUB_MODELS : true
2121 LOG_LEVEL : debug
22- INCLUDE_PATTERNS : ' src/*'
22+ INCLUDE_PATTERNS : src/*,.github/**/*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ name: Code Review
4444permissions :
4545 contents : read
4646 pull-requests : write
47+ models : true # if you choose use github models, set this to be true
4748
4849on :
4950 pull_request :
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ export const robot = (app: Probot) => {
171171 }
172172 } catch ( e ) {
173173 log . info ( `review ${ file . filename } failed` , e ) ;
174+ throw e ;
174175 }
175176 }
176177 try {
@@ -185,6 +186,7 @@ export const robot = (app: Probot) => {
185186 } ) ;
186187 } catch ( e ) {
187188 log . info ( `Failed to create review` , e ) ;
189+ throw e ;
188190 }
189191
190192 console . timeEnd ( 'gpt cost' ) ;
You can’t perform that action at this time.
0 commit comments