Loading...
Loading...
Analyze and resolve Sentry comments on GitHub Pull Requests. Use this when asked to review or fix issues identified by Sentry in PR comments. Can review specific PRs by number or automatically find recent PRs with Sentry feedback.
npx skill4agent add getsentry/sentry-for-ai sentry-code-reviewAll Skills > Workflow > Code Review
authorfilelinenullbodybody**Bug:** [Issue description]
<sub>Severity: CRITICAL | Confidence: 1.00</sub><details><details>
<summary>🔍 <b>Detailed Analysis</b></summary>
Explains the technical problem and consequences
</details><details><details>
<summary>💡 <b>Suggested Fix</b></summary>
Proposes a concrete solution
</details><details><details>
<summary>🤖 <b>Prompt for AI Agent</b></summary>
Specific instructions for reviewing and fixing the issue
Includes: Location (file#line), Potential issue description
</details># Get PR review comments (line-by-line code comments) using GitHub API
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments --jq '.[] | select(.user.login | startswith("sentry")) | {author: .user.login, file: .path, line: .line, body: .body}'filelinebody<sub>Severity: XConfidence: X.XX<summary>🔍 <b>Detailed Analysis</b></summary><summary>💡 <b>Suggested Fix</b></summary><summary>🤖 <b>Prompt for AI Agent</b></summary>fileline## Sentry Code Review Summary
**PR:** #[number] - [title]
**Sentry Comments Found:** [count]
### Issues Resolved
#### 1. [Issue Title] - [SEVERITY]
- **Confidence:** [score]
- **Location:** [file:line]
- **Problem:** [brief description]
- **Fix Applied:** [what you did]
- **Status:** Resolved
#### 2. [Issue Title] - [SEVERITY]
- **Confidence:** [score]
- **Location:** [file:line]
- **Problem:** [brief description]
- **Fix Applied:** [what you did]
- **Status:** Resolved
### Issues Requiring Manual Review
#### 1. [Issue Title] - [SEVERITY]
- **Reason:** [why manual review is needed]
- **Recommendation:** [suggested approach]
### Summary
- **Total Issues:** [count]
- **Resolved:** [count]
- **Manual Review Required:** [count]