Skip to content

Commit

Permalink
Allow github extension orgs to use autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
roaga committed Oct 16, 2024
1 parent 8158cf8 commit 90caed1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sentry/api/endpoints/seer_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from rest_framework.response import Response
from sentry_sdk import Scope, capture_exception

from sentry import options
from sentry.api.api_owners import ApiOwner
from sentry.api.api_publish_status import ApiPublishStatus
from sentry.api.authentication import AuthenticationSiloLimit, StandardAuthentication
Expand Down Expand Up @@ -153,8 +154,9 @@ def get_organization_slug(*, org_id: int) -> dict:
def get_organization_autofix_consent(*, org_id: int) -> dict:
org: Organization = Organization.objects.get(id=org_id)
consent = org.get_option("sentry:gen_ai_consent", False)
github_extension_enabled = org_id in options.get("github-extension.enabled-orgs")
return {
"consent": consent,
"consent": consent or github_extension_enabled,
}


Expand Down

0 comments on commit 90caed1

Please sign in to comment.