Skip to content

Commit

Permalink
feat(github-comments): use internal feature flag (#52002)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathteng authored Jul 6, 2023
1 parent 5e42869 commit 22cacfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/sentry/features/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
default_manager.add("organizations:codecov-commit-sha-from-git-blame", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
default_manager.add("organizations:ds-sliding-window", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)
default_manager.add("organizations:ds-sliding-window-org", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)
default_manager.add("organizations:pr-comment-bot", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
default_manager.add("organizations:pr-comment-bot", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)
default_manager.add("organizations:ds-org-recalibration", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)
default_manager.add("organizations:sourcemaps-bundle-indexing", OrganizationFeature, FeatureHandlerStrategy.REMOTE)

Expand Down
1 change: 0 additions & 1 deletion src/sentry/tasks/integrations/github/pr_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def github_comment_workflow(pullrequest_id: int, project_id: int):
metrics.incr("github_pr_comment.error", tags={"type": "missing_org"})
return

# TODO(cathy): add check for OrganizationOption for comment bot
if not (
features.has("organizations:pr-comment-bot", organization)
and OrganizationOption.objects.get_value(
Expand Down

0 comments on commit 22cacfd

Please sign in to comment.