Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webhooks: Remove space from UptimeRobot.

Anders Kaseorg1d3520db12fc
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.md
index cbdc6fc7790..b71f8a52c3f 100644
--- a/docs/overview/changelog.md
+++ b/docs/overview/changelog.md
@@ -391,7 +391,7 @@ log][commit-log] for an up-to-date list of raw changes.
- Added support for subscribing all members of a user group to a stream.
- Added support for sms: and tel: links.
- Community topic editing time limit increased to 3 days for members.
-- New integrations: Freshping, Jotform, Uptime Robot, and a JSON
+- New integrations: Freshping, Jotform, UptimeRobot, and a JSON
formatter (which is particularly useful when developing a new
integration).
- Updated integrations: Clubhouse, NewRelic, Bitbucket, Zabbix.
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py
index cfd3aa62361..f861ce346e5 100644
--- a/zerver/lib/integrations.py
+++ b/zerver/lib/integrations.py
@@ -454,7 +454,7 @@ WEBHOOK_INTEGRATIONS: List[WebhookIntegration] = [
WebhookIntegration("travis", ["continuous-integration"], display_name="Travis CI"),
WebhookIntegration("trello", ["project-management"]),
WebhookIntegration("updown", ["monitoring"]),
- WebhookIntegration("uptimerobot", ["monitoring"], display_name="Uptime Robot"),
+ WebhookIntegration("uptimerobot", ["monitoring"], display_name="UptimeRobot"),
WebhookIntegration(
"yo",
["communication"],
diff --git a/zerver/webhooks/uptimerobot/doc.md b/zerver/webhooks/uptimerobot/doc.md
index e46df8a7736..c934f8397de 100644
--- a/zerver/webhooks/uptimerobot/doc.md
+++ b/zerver/webhooks/uptimerobot/doc.md
@@ -1,4 +1,4 @@
-Receive Zulip notifications from Uptime Robot!
+Receive Zulip notifications from UptimeRobot!
1. {!create-stream.md!}
@@ -14,7 +14,7 @@ Receive Zulip notifications from Uptime Robot!
notifications sent to. If you do not specify a `stream`, the bot will
send notifications via PMs to the creator of the bot.
-1. On Uptime Robot, go to **My Settings** and select **Add Alert Contact**.
+1. On UptimeRobot, go to **My Settings** and select **Add Alert Contact**.
Set **Alert Contact Type** to **webhook**.
1. Set **Friendly Name** to a name of your choice, such as `Zulip`. Set **URL to notify** to the
diff --git a/zerver/webhooks/uptimerobot/tests.py b/zerver/webhooks/uptimerobot/tests.py
index dbd4daf33c9..8ded8911a4f 100644
--- a/zerver/webhooks/uptimerobot/tests.py
+++ b/zerver/webhooks/uptimerobot/tests.py
@@ -30,7 +30,7 @@ It was down for 44 minutes and 37 seconds.
def test_uptimerobot_invalid_payload_with_missing_data(self) -> None:
"""
- Tests if invalid uptime robot payloads are handled correctly
+ Tests if invalid UptimeRobot payloads are handled correctly
"""
self.url = self.build_webhook_url()
payload = self.get_body("uptimerobot_invalid_payload_with_missing_data")
diff --git a/zerver/webhooks/uptimerobot/view.py b/zerver/webhooks/uptimerobot/view.py
index 020787d2dd1..66193186d6c 100644
--- a/zerver/webhooks/uptimerobot/view.py
+++ b/zerver/webhooks/uptimerobot/view.py
@@ -13,10 +13,10 @@ from zerver.lib.webhooks.common import check_send_webhook_message
from zerver.models import UserProfile
MISCONFIGURED_PAYLOAD_ERROR_MESSAGE = """
-Hi there! Your bot {bot_name} just received a Uptime Robot payload that is missing
+Hi there! Your bot {bot_name} just received a UptimeRobot payload that is missing
some data that Zulip requires. This usually indicates a configuration issue
-in your Uptime Robot webhook settings. Please make sure that you set the required parameters
-when configuring the Uptime Robot webhook. Contact {support_email} if you
+in your UptimeRobot webhook settings. Please make sure that you set the required parameters
+when configuring the UptimeRobot webhook. Contact {support_email} if you
need further help!
"""