Skip to content

Commit 61e7f67

Browse files
Prevent AI becomes AI Code Review (#14991)
As title suggests ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) --------- Co-authored-by: Cody De Arkland <[email protected]>
1 parent b4aa648 commit 61e7f67

File tree

5 files changed

+65
-61
lines changed

5 files changed

+65
-61
lines changed
File renamed without changes.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: AI Code Review
3+
sidebar_order: 30
4+
description: "Get error predictions, code reviews and new tests for better code and coverage."
5+
---
6+
7+
AI Code Review helps you generate new tests for uncovered code and reviews your code changes, predicting errors and offering suggestions for improvement before merging pull requests.
8+
9+
<Alert>
10+
AI Code Review is currently in <strong>beta</strong>. Beta features are
11+
still a work in progress and may have bugs. Please join the [Discord
12+
conversation](https://discord.com/channels/621778831602221064/1385700674557444190)
13+
to share your feedback.
14+
</Alert>
15+
16+
## Getting Started
17+
18+
To enable AI Code Review in your GitHub organization or on specific repositories, you need to install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry). This allows the assistant to analyze pull requests, provide insights, and write tests. **You must also have the [Sentry Github integration](/organization/integrations/source-code-mgmt/github/) enabled.**
19+
20+
1. Install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry) in your GitHub organization or specific repositories.
21+
2. Enable these required settings in your Sentry [organization settings](https://sentry.io/orgredirect/settings/:orgslug/):
22+
- `Show Generative AI Features`
23+
- `Enable AI Code Review`
24+
25+
If you're not an admin, share the Seer by Sentry GitHub App Integration link with your organization's admin or owner to install it.
26+
27+
## AI Code Review Commands
28+
29+
After installing the app, AI Code Review can help you in three ways:
30+
31+
1. **Error Prediction** - When you create a pull request and set it to `Ready for Review`, AI Code Review will check for errors in your code. If no error is found, you will see a 🎉 emoji as a reaction to your PR description. Otherwise, AI Code Review will add comments to your PR.
32+
33+
2. **`@sentry review`** - Use this command in a PR comment, and the assistant will review the PR and predict errors, as well as make suggestions.
34+
35+
3. **`@sentry generate-test`** - Use this command in a PR comment, and the assistant will generate tests for your PR.
36+
37+
Once you have added a comment, the assistant will reply, acknowledging the request. For code reviews, you will then see comments added to your PR. For test generation, you will see a comment with a link to the generated tests.
38+
39+
![Sentry Prevent AI Overview](./img/prevent-ai-response.png)
40+
41+
## Frequently Asked Questions
42+
43+
- **What data does AI Code Review need access to for the AI system to function, and what information is sent to third-party AI providers?**
44+
45+
AI Code Review requires access to your pull requests, including PR metadata, repository information, file names, directory structures, and code diffs. Only file names, code diffs, and PR descriptions are sent to the AI provider for analysis.
46+
47+
- **Does AI Code run anywhere outside of GitHub, and does it run in the background?**
48+
49+
AI Code Review only runs on GitHub. It will run once when a PR is marked `ready for review`, and otherwise only runs when triggered by a comment.
50+
51+
You can learn more about AI privacy and security [here](/product/ai-in-sentry/ai-privacy-and-security/).
52+
53+
- **Why aren't `@sentry` commands working?**
54+
55+
AI Code Review will respond with a message to enable the `Show Generative AI Features` and `Enable PR Review and Test Generation` settings in your [organization settings](https://sentry.io/orgredirect/settings/:orgslug/), if you have not already enabled them. Once enabled, try `@sentry review` or `@sentry generate-test` again to run AI Code Review.
56+
57+
- **Is AI Code Review available in the EU region?**
58+
59+
Not currently, although we're working on it.

docs/product/ai-in-sentry/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Seer is Sentry's AI debugging agent that helps resolve errors and performance is
1919

2020
**Issue summary** provides a quick overview of an issue by highlighting key insights taken from event and issue-level metadata. You'll see a quick overview of what's going wrong, a potential cause, and if relevant, insights from trace-connected issues.
2121

22-
### [Sentry Prevent AI](/product/ai-in-sentry/sentry-prevent-ai/)
22+
### [AI Code Review](/product/ai-in-sentry/sentry-prevent-ai/)
2323

24-
Sentry Prevent AI is a generative AI assistant developed by Sentry, available in GitHub. It helps you generate new tests for uncovered code and reviews your code changes, offering suggestions for improvement before merging pull requests.
24+
AI Code Review helps you generate new tests for uncovered code and reviews your code changes, offering suggestions for improvement before merging pull requests. Currently available only on Github
2525

2626
### Query Assistant
2727

docs/product/ai-in-sentry/sentry-prevent-ai/index.mdx

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

redirects.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ const userDocsRedirects = [
254254
source: '/product/dev-toolbar/:path*',
255255
destination: '/product/sentry-toolbar/:path*',
256256
},
257+
{
258+
source: '/product/ai-in-sentry/sentry-prevent-ai/:path*',
259+
destination: '/product/ai-in-sentry/ai-code-review/:path*',
260+
},
257261

258262
{
259263
source: '/organization/integrations/launchdarkly/',

0 commit comments

Comments
 (0)