From 64b2a5aca1142b532e875464ed06e12335483dc3 Mon Sep 17 00:00:00 2001 From: anc95 <1481988258@qq.com> Date: Mon, 4 Aug 2025 16:11:47 +0800 Subject: [PATCH] test --- .github/workflows/cr.yml | 2 +- .github/workflows/translate.yml | 28 ---------------------------- README.md | 1 + src/bot.ts | 2 ++ 4 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/translate.yml diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index 413e1ffd..e47f531d 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -19,4 +19,4 @@ jobs: LANGUAGE: English USE_GITHUB_MODELS: true LOG_LEVEL: debug - INCLUDE_PATTERNS: 'src/*' + INCLUDE_PATTERNS: src/*,.github/**/* diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml deleted file mode 100644 index 84885d56..00000000 --- a/.github/workflows/translate.yml +++ /dev/null @@ -1,28 +0,0 @@ -# name: Translate README - -# on: -# push: -# branches: -# - main - -# permissions: -# contents: write - -# jobs: -# build: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - name: Setup Node.js -# uses: actions/setup-node@v1 -# with: -# node-version: 12.x -# # ISO Langusge Codes: https://cloud.google.com/translate/docs/languages -# - name: Adding README - Chinese Simplified -# uses: dephraiim/translate-readme@main -# with: -# LANG: zh-CN -# - name: Adding README - Chinese Traditional -# uses: dephraiim/translate-readme@main -# with: -# LANG: zh-TW diff --git a/README.md b/README.md index 3e04f574..4f3777cd 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ name: Code Review permissions: contents: read pull-requests: write + models: true # if you choose use github models, set this to be true on: pull_request: diff --git a/src/bot.ts b/src/bot.ts index 54244697..43878874 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -171,6 +171,7 @@ export const robot = (app: Probot) => { } } catch (e) { log.info(`review ${file.filename} failed`, e); + throw e; } } try { @@ -185,6 +186,7 @@ export const robot = (app: Probot) => { }); } catch (e) { log.info(`Failed to create review`, e); + throw e; } console.timeEnd('gpt cost');