Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
webhooks: Fix Canarytokens pluralization.
Anders Kaseorgdc72f79a8339
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.pyindex 002feaa8b90..b05978f007f 100644--- a/zerver/lib/integrations.py+++ b/zerver/lib/integrations.py@@ -356,7 +356,7 @@ WEBHOOK_INTEGRATIONS: List[WebhookIntegration] = [legacy=True,),WebhookIntegration("buildbot", ["continuous-integration"], display_name="Buildbot"),- WebhookIntegration("canarytoken", ["monitoring"], display_name="Thinkst Canarytoken"),+ WebhookIntegration("canarytoken", ["monitoring"], display_name="Thinkst Canarytokens"),WebhookIntegration("circleci", ["continuous-integration"], display_name="CircleCI"),WebhookIntegration("clubhouse", ["project-management"]),WebhookIntegration("codeship", ["continuous-integration", "deployment"]),diff --git a/zerver/webhooks/canarytoken/tests.py b/zerver/webhooks/canarytoken/tests.pyindex 7b9b4515426..23c7d94733e 100644--- a/zerver/webhooks/canarytoken/tests.py+++ b/zerver/webhooks/canarytoken/tests.py@@ -1,7 +1,7 @@from zerver.lib.test_classes import WebhookTestCase-class CanarytokenHookTests(WebhookTestCase):+class CanarytokensHookTests(WebhookTestCase):STREAM_NAME = "canarytoken"URL_TEMPLATE = "/api/v1/external/canarytoken?stream={stream}&api_key={api_key}"WEBHOOK_DIR_NAME = "canarytoken"diff --git a/zerver/webhooks/canarytoken/view.py b/zerver/webhooks/canarytoken/view.pyindex 51da4e7be03..04d46880f40 100644--- a/zerver/webhooks/canarytoken/view.py+++ b/zerver/webhooks/canarytoken/view.py@@ -10,7 +10,7 @@ from zerver.lib.webhooks.common import check_send_webhook_messagefrom zerver.models import UserProfile-@webhook_view("Canarytoken")+@webhook_view("Canarytokens")@has_request_variablesdef api_canarytoken_webhook(request: HttpRequest,diff --git a/zerver/webhooks/thinkst/doc.md b/zerver/webhooks/thinkst/doc.mdindex eb4f9b42b27..b732860c3cd 100644--- a/zerver/webhooks/thinkst/doc.md+++ b/zerver/webhooks/thinkst/doc.md@@ -1,6 +1,6 @@See your Thinkst Canary and Canarytoken alerts in Zulip! This integration works withCanarytokens from Thinkst's paid product, not [canarytokens.org][canarytokens] - see the-[Canarytoken](/integrations/doc/canarytoken) integration for those!+[Canarytokens](/integrations/doc/canarytoken) integration for those!1. {!create-stream.md!}