Skip to content

Commit 763282a

Browse files
authored
Merge pull request #193 from anc95/chao
test
2 parents c98bcab + 64b2a5a commit 763282a

File tree

4 files changed

+4
-29
lines changed

4 files changed

+4
-29
lines changed

.github/workflows/cr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
LANGUAGE: English
2020
USE_GITHUB_MODELS: true
2121
LOG_LEVEL: debug
22-
INCLUDE_PATTERNS: 'src/*'
22+
INCLUDE_PATTERNS: src/*,.github/**/*

.github/workflows/translate.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ name: Code Review
4444
permissions:
4545
contents: read
4646
pull-requests: write
47+
models: true # if you choose use github models, set this to be true
4748

4849
on:
4950
pull_request:

src/bot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)