Skip to content

feat: 审查质量增强——统一 API 配置、focus 区域、1-click suggestion - #108

Merged
lwpk110 merged 1 commit into
mainfrom
release/v1.0
Aug 15, 2026
Merged

lwpk110 merged 1 commit into
mainfrom
release/v1.0

Conversation

@lwpk110

@lwpk110 lwpk110 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

变更概述

审查质量迭代:统一 API 配置、报告增加 focus 区域与验证步骤、行内评论支持 GitHub 1-Click Suggestion、配置解析增强。

变更内容

  • 统一 API 配置AI_API_KEY / AI_BASE_URL 优先,回退各提供方专属 key/base_url;AI 调用加 60s 超时
  • prompt 增强:新增 focus_areas(风险领域标签,如 🔒 安全性)、verification_steps(回归测试建议)、suggestion_code(1-Click Suggestion)
  • parse:解析并渲染新字段(报告中展示 focus/verification)
  • 行内评论:支持 suggestion_code 供 GitHub 1-Click Suggestion
  • 配置解析增强:行尾注释剥离、manual_reviewers@ 前缀清洗
  • 行号校准validateIssueLines 防止行号漂移;严重度校准
  • 三形态同步(核心 / Actions 脚本 / Worker);测试增至 21 用例

验证

  • 21 单测全过;构建 / Worker 类型通过

- 统一 AI_API_KEY / AI_BASE_URL 优先,回退提供方专属 key/base_url;AI 调用加 60s 超时
- prompt 增加 focus_areas(风险领域标签)、verification_steps(回归测试建议)、
  suggestion_code(GitHub 1-Click Suggestion)
- parse 解析并渲染新字段(折叠块展示 focus/verification)
- 配置解析增强:行尾注释剥离、manual_reviewers 的 @ 前缀清洗
- 行号校准(validateIssueLines)、严重度校准
- scripts / worker 三形态同步;测试增至 21 用例

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@lwpk110, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 45 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8f8ca1ab-8bac-4152-abf2-65380bab2ded

📥 Commits

Reviewing files that changed from the base of the PR and between 1adffb5 and ecb18f4.

📒 Files selected for processing (10)
  • scripts/heimdall-review.js
  • src/app.ts
  • src/review/index.ts
  • src/review/parse.ts
  • src/review/prompt.ts
  • src/review/providers.ts
  • src/review/repo-config.ts
  • test/parse.test.js
  • test/repo-config.test.js
  • worker/index.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lwpk110
lwpk110 merged commit 4ecbf15 into main Aug 15, 2026
2 checks passed
@lwpk110
lwpk110 deleted the release/v1.0 branch August 15, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant