Loading...
Loading...
Compare original and translation side by side
ghgh auth statusghgh auth statusnode /job/.pi/skills/code-review-assistant/review.js "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js --branch "feature-branch"node /job/.pi/skills/code-review-assistant/review.js --branch "feature-branch"node /job/.pi/skills/code-review-assistant/review.js --files "src/index.ts" "src/utils.ts"node /job/.pi/skills/code-review-assistant/review.js --files "src/index.ts" "src/utils.ts"node /job/.pi/skills/code-review-assistant/review.js --diff "diff content here"node /job/.pi/skills/code-review-assistant/review.js --diff "diff content here"node /job/.pi/skills/code-review-assistant/review.js --focus security "https://github.com/owner/repo/pull/123"
node /job/.pi/skills/code-review-assistant/review.js --focus bugs "https://github.com/owner/repo/pull/123"
node /job/.pi/skills/code-review-assistant/review.js --focus best-practices "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js --focus security "https://github.com/owner/repo/pull/123"
node /job/.pi/skills/code-review-assistant/review.js --focus bugs "https://github.com/owner/repo/pull/123"
node /job/.pi/skills/code-review-assistant/review.js --focus best-practices "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js --json "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js --json "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/quick-check.js "const x = 1;" javascriptnode /job/.pi/skills/code-review-assistant/quick-check.js "const x = 1;" javascript| Focus | Description |
|---|---|
| Security vulnerabilities, injection risks, exposed secrets |
| Logic errors, null pointer risks, race conditions |
| Code style, performance, maintainability |
| Performance issues, memory leaks, inefficient algorithms |
| Full review covering all areas |
| 重点领域 | 描述 |
|---|---|
| 安全漏洞、注入风险、泄露的密钥 |
| 逻辑错误、空指针风险、竞态条件 |
| 代码风格、性能、可维护性 |
| 性能问题、内存泄漏、低效算法 |
| 覆盖所有领域的全面审查 |
============================================================
Code Review: PR #123 - Add user authentication
============================================================
Repo: owner/repo
Author: @developer
Files changed: 3
Additions: 150 | Deletions: 20
--- Security Issues ---
⚠️ [HIGH] auth.js:45 - Hardcoded API key detected
Consider using environment variables instead
✅ No other security issues found
--- Bugs ---
🐛 [MEDIUM] login.js:78 - Missing null check on user object
Add defensive check before accessing user.email
🔍 [LOW] utils.js:12 - Unused variable 'temp'
--- Best Practices ---
💡 [LOW] auth.js:90 - Consider using const instead of let
Variable 'token' is never reassigned
--- Summary ---
Overall: 1 high priority, 1 medium priority, 2 low priority issues
Recommendation: Address high and medium issues before merging============================================================
代码审查:PR #123 - 添加用户认证功能
============================================================
仓库:owner/repo
作者:@developer
变更文件数:3
新增代码:150行 | 删除代码:20行
--- 安全问题 ---
⚠️ [高优先级] auth.js:45 - 检测到硬编码API密钥
建议改用环境变量存储
✅ 未发现其他安全问题
--- 代码漏洞 ---
🐛 [中优先级] login.js:78 - 用户对象缺少空值检查
在访问user.email前添加防御性检查
🔍 [低优先级] utils.js:12 - 存在未使用变量'temp'
--- 最佳实践 ---
💡 [低优先级] auth.js:90 - 建议使用const替代let
变量'token'从未被重新赋值
--- 总结 ---
总体情况:1个高优先级、1个中优先级、2个低优先级问题
建议:合并前解决高优先级和中优先级问题{
"pr": {
"url": "https://github.com/owner/repo/pull/123",
"title": "Add user authentication",
"repo": "owner/repo",
"author": "@developer",
"filesChanged": 3,
"additions": 150,
"deletions": 20
},
"issues": [
{
"severity": "high",
"category": "security",
"file": "auth.js",
"line": 45,
"message": "Hardcoded API key detected",
"suggestion": "Consider using environment variables instead"
},
{
"severity": "medium",
"category": "bugs",
"file": "login.js",
"line": 78,
"message": "Missing null check on user object",
"suggestion": "Add defensive check before accessing user.email"
}
],
"summary": {
"total": 4,
"high": 1,
"medium": 1,
"low": 2,
"recommendation": "Address high and medium issues before merging"
}
}{
"pr": {
"url": "https://github.com/owner/repo/pull/123",
"title": "Add user authentication",
"repo": "owner/repo",
"author": "@developer",
"filesChanged": 3,
"additions": 150,
"deletions": 20
},
"issues": [
{
"severity": "high",
"category": "security",
"file": "auth.js",
"line": 45,
"message": "Hardcoded API key detected",
"suggestion": "Consider using environment variables instead"
},
{
"severity": "medium",
"category": "bugs",
"file": "login.js",
"line": 78,
"message": "Missing null check on user object",
"suggestion": "Add defensive check before accessing user.email"
}
],
"summary": {
"total": 4,
"high": 1,
"medium": 1,
"low": 2,
"recommendation": "Address high and medium issues before merging"
}
}User: Can you review this PR? https://github.com/owner/repo/pull/456
Agent: [Uses code-review-assistant to fetch PR and analyze]用户:能帮我审查这个PR吗?https://github.com/owner/repo/pull/456
Agent:[使用code-review-assistant获取PR并分析]User: Run a security check on my branch before I submit
Agent: [Uses code-review-assistant with --focus security on branch]用户:提交前帮我对分支做一次安全检查
Agent:[使用code-review-assistant并指定--focus security参数审查分支]User: What's the code quality like in these files?
Agent: [Uses code-review-assistant with --focus best-practices on files]用户:这些文件的代码质量怎么样?
Agent:[使用code-review-assistant并指定--focus best-practices参数审查文件]ghgh--focus security--jsonquick-check.js--focus security--jsonquick-check.js