-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Prevent AI becomes AI Code Review #14991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1f18abc
Update index.mdx
rohan-at-sentry 01d6c46
Update index.mdx
rohan-at-sentry 41e0266
Moving content to new docs location for ai code review
codyde 0db2432
adding redirect for previous location
codyde 9bf0913
Minor content fix
codyde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| --- | ||
| title: AI Code Review | ||
| sidebar_order: 30 | ||
| description: "Get error predictions, code reviews and new tests for better code and coverage." | ||
| --- | ||
|
|
||
| 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. | ||
|
|
||
| <Alert> | ||
| AI Code Review is currently in <strong>beta</strong>. Beta features are | ||
| still a work in progress and may have bugs. Please join the [Discord | ||
| conversation](https://discord.com/channels/621778831602221064/1385700674557444190) | ||
| to share your feedback. | ||
| </Alert> | ||
|
|
||
| ## Getting Started | ||
|
|
||
| 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.** | ||
|
|
||
| 1. Install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry) in your GitHub organization or specific repositories. | ||
| 2. Enable these required settings in your Sentry [organization settings](https://sentry.io/orgredirect/settings/:orgslug/): | ||
| - `Show Generative AI Features` | ||
| - `Enable AI Code Review` | ||
|
|
||
| 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. | ||
|
|
||
| ## AI Code Review Commands | ||
|
|
||
| After installing the app, AI Code Review can help you in three ways: | ||
|
|
||
| 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. | ||
|
|
||
| 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. | ||
|
|
||
| 3. **`@sentry generate-test`** - Use this command in a PR comment, and the assistant will generate tests for your PR. | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
|
|
||
| ## Frequently Asked Questions | ||
|
|
||
| - **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?** | ||
|
|
||
| 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. | ||
|
|
||
| - **Does AI Code run anywhere outside of GitHub, and does it run in the background?** | ||
|
|
||
| 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. | ||
|
|
||
| You can learn more about AI privacy and security [here](/product/ai-in-sentry/ai-privacy-and-security/). | ||
|
|
||
| - **Why aren't `@sentry` commands working?** | ||
|
|
||
| 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. | ||
|
|
||
| - **Is AI Code Review available in the EU region?** | ||
|
|
||
| Not currently, although we're working on it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: AI Code Review Section Formatting Errors
The "AI Code Review" section has a few formatting and linking issues. The link points to the old path
/product/ai-in-sentry/sentry-prevent-ai/instead of the new/product/ai-in-sentry/ai-code-review/. The text "AI Code review" has inconsistent capitalization. Also, the sentence "Currently available only on Github" is missing a space after "pull requests.", uses incorrect capitalization for "Github", and lacks a period.