webhooks: Add missing space in Review Board.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-12-16 20:12:13 -08:00
committed by Anders Kaseorg
parent c02c053ec3
commit 65868b09eb
4 changed files with 7 additions and 5 deletions

View File

@@ -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 show

View File

@@ -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(

View File

@@ -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-right
corner, and click **Team administration**. Select **WebHooks** on the
left sidebar, and click **+ Create a WebHook**.

View File

@@ -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 None
body_function = RB_MESSAGE_FUNCTIONS.get(event_type)