Skip to content

Conversation

@rohan-at-sentry
Copy link
Contributor

  • 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

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 Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Dec 3, 2025 4:40pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Dec 3, 2025 4:40pm


- **Pull Requests (Read & Write)**: To read PR content and write code review comments
- **Checks (Read & Write)**: To create status checks that show the AI Code Review results on your PRs
- **Commit Statuses (Read & Write)**: To post status checks to commits and integrate with branch protection rules

Choose a reason for hiding this comment

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

I think we don't need this one. We use this endpoint and it lists "Checks" repository permissions (write)

Let's check other endpoints used:

Looks like they all are for the checks:write

- **Why is the AI Code Review status check failing?**

The status check may fail if:
- The `Show Generative AI Features` or `Enable AI Code Review` settings are not enabled in your organization

Choose a reason for hiding this comment

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

Can we discuss this behavior? Sounds odd to me that you don't give permission for Code Review and we have the audacity to create a status check for it.

On requesting explicit review I'd really encourage is to only reply with the comment


The status check may fail if:
- The `Show Generative AI Features` or `Enable AI Code Review` settings are not enabled in your organization
- The GitHub integration doesn't have the required permissions (Pull Requests, Checks, and Commit Statuses)

Choose a reason for hiding this comment

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

Well if it doesn't have Checks then you won't see a status check, right? per definition

- 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
5. Save your changes

<Alert level="warning">
We recommend not making the AI Code Review status check a required check. Requiring it will block PR merges if the check fails due to service disruptions, and may conflict with future personal configuration options that allow users to opt out of code review.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
We recommend not making the AI Code Review status check a required check. Requiring it will block PR merges if the check fails due to service disruptions, and may conflict with future personal configuration options that allow users to opt out of code review.
We recommend making the AI Code Review status check an **optional** check. Requiring it will block PR merges if the check fails due to service disruptions, and may conflict with future personal configuration options that allow users to opt out of code review.

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.

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