Browse Source

feat(github-comments): add feature flag (#50434)

Add feature flag for the Github PR Comment Bot.
Cathy Teng 1 year ago
parent
commit
bdfa285541
2 changed files with 3 additions and 0 deletions
  1. 2 0
      src/sentry/conf/server.py
  2. 1 0
      src/sentry/features/__init__.py

+ 2 - 0
src/sentry/conf/server.py

@@ -1558,6 +1558,8 @@ SENTRY_FEATURES = {
     "organizations:slack-escape-messages": False,
     # If true, allow to create/use org auth tokens
     "organizations:org-auth-tokens": False,
+    # Enables commenting on PRs from the Sentry comment bot.
+    "organizations:pr-comment-bot": False,
     # Adds additional filters and a new section to issue alert rules.
     "projects:alert-filters": True,
     # Enable functionality to specify custom inbound filters on events.

+ 1 - 0
src/sentry/features/__init__.py

@@ -252,6 +252,7 @@ default_manager.add("organizations:codecov-commit-sha-from-git-blame", Organizat
 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:ds-boost-new-projects", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)
+default_manager.add("organizations:pr-comment-bot", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
 
 # Project scoped features
 default_manager.add("projects:alert-filters", ProjectFeature, FeatureHandlerStrategy.INTERNAL)