Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
webhooks: Add missing space in Review Board.
Anders Kaseorg65868b09eb8b
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.mdindex 78101f040c7..53d0c406284 100644--- a/docs/overview/changelog.md+++ b/docs/overview/changelog.md@@ -1280,7 +1280,7 @@ details.- Added /digest endpoint for viewing the current digest email on the web.- Added alert for when a user sends a message when scrolled too far up.- Added internationalization for outgoing emails.-- Added a ReviewBoard integration, and improved numerous existing integrations.+- Added a Review Board integration, and improved numerous existing integrations.- Added support for multi-line messages for the /me feature.- Added Markdown rendering of text when displaying custom profile fields.- Added "silent mentions" syntax (`@_**Tim Abbott**`), which showdiff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.pyindex 3eecdf7cc41..cfd3aa62361 100644--- a/zerver/lib/integrations.py+++ b/zerver/lib/integrations.py@@ -431,7 +431,7 @@ WEBHOOK_INTEGRATIONS: List[WebhookIntegration] = [WebhookIntegration("pivotal", ["project-management"], display_name="Pivotal Tracker"),WebhookIntegration("radarr", ["entertainment"], display_name="Radarr"),WebhookIntegration("raygun", ["monitoring"], display_name="Raygun"),- WebhookIntegration("reviewboard", ["version-control"], display_name="ReviewBoard"),+ WebhookIntegration("reviewboard", ["version-control"], display_name="Review Board"),WebhookIntegration("semaphore", ["continuous-integration", "deployment"]),WebhookIntegration("sentry", ["monitoring"]),WebhookIntegration(diff --git a/zerver/webhooks/reviewboard/doc.md b/zerver/webhooks/reviewboard/doc.mdindex 96f841c990d..f45a2572b7d 100644--- a/zerver/webhooks/reviewboard/doc.md+++ b/zerver/webhooks/reviewboard/doc.md@@ -1,10 +1,10 @@-Get ReviewBoard notifications in Zulip!+Get Review Board notifications in Zulip!1. {!create-stream.md!}1. {!create-bot-construct-url-indented.md!}-1. On your ReviewBoard **Dashboard**, click your team's name in the top-right+1. On your Review Board **Dashboard**, click your team's name in the top-rightcorner, and click **Team administration**. Select **WebHooks** on theleft sidebar, and click **+ Create a WebHook**.diff --git a/zerver/webhooks/reviewboard/view.py b/zerver/webhooks/reviewboard/view.pyindex c0679b9255e..5255e563b5c 100644--- a/zerver/webhooks/reviewboard/view.py+++ b/zerver/webhooks/reviewboard/view.py@@ -182,7 +182,9 @@ def api_reviewboard_webhook(user_profile: UserProfile,payload: Dict[str, Sequence[Dict[str, Any]]] = REQ(argument_type="body"),) -> HttpResponse:- event_type = validate_extract_webhook_http_header(request, "X_REVIEWBOARD_EVENT", "ReviewBoard")+ event_type = validate_extract_webhook_http_header(+ request, "X_REVIEWBOARD_EVENT", "Review Board"+ )assert event_type is not Nonebody_function = RB_MESSAGE_FUNCTIONS.get(event_type)