|
10 | 10 | from sentry.backup.dependencies import NormalizedModelName, get_model_name |
11 | 11 | from sentry.backup.sanitize import SanitizableField, Sanitizer |
12 | 12 | from sentry.backup.scopes import RelocationScope |
13 | | -from sentry.constants import ObjectStatus |
| 13 | +from sentry.constants import DEFAULT_CODE_REVIEW_TRIGGERS, ObjectStatus |
14 | 14 | from sentry.db.models import ( |
15 | 15 | BoundedBigIntegerField, |
16 | 16 | BoundedPositiveIntegerField, |
|
24 | 24 | rename_on_pending_deletion, |
25 | 25 | reset_pending_deletion_field_names, |
26 | 26 | ) |
27 | | -from sentry.models import OrganizationOption |
28 | | -from sentry.models.repository_settings import RepositorySettings |
| 27 | +from sentry.models.options.organization_option import OrganizationOption |
| 28 | +from sentry.models.repositorysettings import RepositorySettings |
29 | 29 | from sentry.organizations.services.organization.service import organization_service |
30 | 30 | from sentry.signals import pending_delete |
31 | 31 | from sentry.users.services.user import RpcUser |
@@ -211,7 +211,7 @@ def handle_auto_enable_code_review(instance: Repository) -> None: |
211 | 211 | default=[], |
212 | 212 | ) |
213 | 213 | if not isinstance(triggers, list): |
214 | | - triggers = [] |
| 214 | + triggers = DEFAULT_CODE_REVIEW_TRIGGERS |
215 | 215 |
|
216 | 216 | RepositorySettings.objects.get_or_create( |
217 | 217 | repository_id=instance.id, |
|
0 commit comments