Skip to content

Conversation

@rohan-at-sentry
Copy link
Contributor

@rohan-at-sentry rohan-at-sentry commented Dec 1, 2025

  • Add GitHub Permissions section explaining required permissions (Pull Requests, Checks, Commit Statuses)
  • Add comprehensive GitHub Status Checks section covering:
    • Status check behavior (pass/neutral/fail states)
    • Visibility information for repository users
    • Instructions for integrating with branch protection rules
  • Add three new FAQ entries about status checks:
    • Why status checks fail
    • How to disable status checks
  • Update GitHub integration docs to reference AI Code Review in permissions table

Main preview: https://sentry-docs-git-fork-rohan-at-sentry-docs-ai-code-review-cc3117.sentry.dev/product/ai-in-sentry/ai-code-review/

Fixes: https://linear.app/getsentry/issue/CW-11

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.):
  • Other deadline:
  • 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

LEGAL BOILERPLATE

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

- Add GitHub Permissions section explaining required permissions (Pull Requests, Checks, Commit Statuses)
- Add comprehensive GitHub Status Checks section covering:
  - Status check behavior (pass/neutral/fail states)
  - Visibility information for repository users
  - Instructions for integrating with branch protection rules
- Add three new FAQ entries about status checks:
  - Why status checks fail
  - How to disable status checks
- Update GitHub integration docs to reference AI Code Review in permissions table

Fixes: https://linear.app/getsentry/issue/CW-11
@vercel
Copy link

vercel bot commented Dec 1, 2025

Someone is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
sentry-docs Ready Ready Preview, Comment Dec 20, 2025 4:19am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
develop-docs Ignored Ignored Preview Dec 20, 2025 4:19am

- Change 'regular PR comments' to 'review comments'
- Fix status check name to 'Seer Code Review' (not 'Sentry AI Code Review')
- Update recommendation to NOT make status check required
- Update status check behavior to include all states: success, neutral, error, cancelled, timed_out
- Clarify that success indicates review completed, not code quality
- Rewrite FAQ about failing status checks to be more accurate
Copy link
Contributor

@sfanahata sfanahata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of nits, but looks good whenever you're ready.

- Remove Commit Statuses permission (AI Code Review only uses Checks)
- Update status check behavior: remove Error state, clarify Neutral includes service errors
- Update FAQ about status check to reflect neutral status instead of error
- Apply sfanahata's suggestion for optional check wording

### Status Check Behavior

- **Success**: If AI Code Review completes successfully, the status check will show as successful (green checkmark). This happens regardless of whether issues were found - the check indicates the review completed, not that the code is error-free.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that's not the current behavior. If issues were found the check is failed.
We can update to do this instead tho

Copy link
Contributor

@sfanahata sfanahata Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@giovanni-guidini - did this UX get changed, or should I update the docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry yeah the docs should be updated. we output "neutral" if a comment is found.

https://github.com/getsentry/seer/blob/main/src/seer/automation/codegen/pr_review_step.py#L531

Copy link
Contributor

@sfanahata sfanahata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Let me know what help you want with some image refreshes.

@sfanahata sfanahata changed the title docs: Clarify GitHub status checks for AI Code Review feat: Update AI Code Review docs for GA (status checks, image, overall UX) Dec 17, 2025
- **Why aren't `@sentry` commands working?**

AI Code Review will respond with a message to enable the `Show Generative AI Features` and `Enable AI Code Review` settings in your [organization settings](https://sentry.io/orgredirect/settings/:orgslug/), if you have not already enabled them. Once enabled, try `@sentry review` again to run AI Code Review.
AI Code Review will only run once `on command phrase` settings are turned on in [Seer settings](https://sentry.io/orgredirect/organizations/:orgslug/settings/seer/). Once enabled, try `@sentry review` again to manually run AI Code Review.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe reframe to "AI Code Review will respond to commands only once ...."


### Status Check Behavior

- **Success**: If AI Code Review completes successfully, the status check will show as successful (green checkmark). This happens regardless of whether issues were found - the check indicates the review completed, not that the code is error-free.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry yeah the docs should be updated. we output "neutral" if a comment is found.

https://github.com/getsentry/seer/blob/main/src/seer/automation/codegen/pr_review_step.py#L531


![Sentry Prevent AI Overview =900x](./img/prevent-ai-response.png)
- **Success**: If AI Code Review completes successfully, the status check will show as successful (green checkmark). This happens regardless of whether issues were found - the check indicates the review completed, not that the code is error-free.
- **Neutral**: If AI Code Review runs but has no specific pass/fail outcome, or if there's a service issue or timeout. We use neutral status for errors so users don't assume there's something wrong with their code when the issue is on our end.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- **Success**: If AI Code Review completes successfully, the status check will show as successful (green checkmark). This happens regardless of whether issues were found - the check indicates the review completed, not that the code is error-free.
- **Neutral**: If AI Code Review runs but has no specific pass/fail outcome, or if there's a service issue or timeout. We use neutral status for errors so users don't assume there's something wrong with their code when the issue is on our end.
- **Cancelled**: If the review was cancelled, typically because a new commit was pushed and the previous review was superseded.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we want to describe the errored and timedout states as well?

Because we were earlier saying that we have it all in neutral, but in fact we have erroed and timeout to communicate if something went wrong on our end

https://github.com/getsentry/seer/blob/main/src/seer/automation/codegen/pr_review_step.py#L93

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added!

- **Why aren't `@sentry` commands working?**

AI Code Review will respond with a message to enable the `Show Generative AI Features` and `Enable AI Code Review` settings in your [organization settings](https://sentry.io/orgredirect/settings/:orgslug/), if you have not already enabled them. Once enabled, try `@sentry review` again to run AI Code Review.
AI Code Review will respond to commands only once `on command phrase` settings are turned on in [Seer settings](https://sentry.io/orgredirect/organizations/:orgslug/settings/seer/). Once enabled, try `@sentry review` again to manually run AI Code Review.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The documentation references a non-existent or incorrectly named setting, on command phrase, for enabling the @sentry review command, making the feature undiscoverable.
Severity: MEDIUM | Confidence: High

🔍 Detailed Analysis

The FAQ section at line 93 instructs users to enable a setting named on command phrase in Seer settings to use the @sentry review command. However, this setting is not mentioned anywhere else in the documentation, including the Seer-specific docs. This suggests the setting does not exist or is incorrectly named, which will prevent users from being able to find and enable the @sentry review command functionality.

💡 Suggested Fix

Verify the correct name and location of the setting that enables the @sentry review command. Update the FAQ to reference the correct setting name and location (e.g., 'Seer settings' or 'organization settings') so that users can successfully enable the feature.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: docs/product/ai-in-sentry/ai-code-review/index.mdx#L93

Potential issue: The FAQ section at line 93 instructs users to enable a setting named
`on command phrase` in Seer settings to use the `@sentry review` command. However, this
setting is not mentioned anywhere else in the documentation, including the Seer-specific
docs. This suggests the setting does not exist or is incorrectly named, which will
prevent users from being able to find and enable the `@sentry review` command
functionality.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 7777918

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.

4 participants