Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
webhooks: Fix TeamCity capitalization.
Anders Kaseorg68c99511a2f2
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.mdindex 53d0c406284..cbdc6fc7790 100644--- a/docs/overview/changelog.md+++ b/docs/overview/changelog.md@@ -2331,7 +2331,7 @@ running a version from before 1.7 should upgrade directly to 1.7.1.- Added documentation on using Hubot to integrate with useful servicesnot yet integrated with Zulip directly (e.g. Google Hangouts).- Added new management command to test sending email from Zulip.-- Added Codeship, Pingdom, Taiga, Teamcity, and Yo integrations.+- Added Codeship, Pingdom, Taiga, TeamCity, and Yo integrations.- Added Nagios plugins to the main distribution.- Added ability for realm administrators to manage custom emoji.- Added guide to writing new integrations.diff --git a/zerver/webhooks/teamcity/doc.md b/zerver/webhooks/teamcity/doc.mdindex 192284a8a3d..ef2e907c21b 100644--- a/zerver/webhooks/teamcity/doc.md+++ b/zerver/webhooks/teamcity/doc.md@@ -1,12 +1,12 @@-Get Zulip notifications for your Teamcity builds!+Get Zulip notifications for your TeamCity builds!1. {!create-stream.md!}1. {!create-bot-construct-url-indented.md!}1. Install the [tcWebHooks plugin](https://github.com/tcplugins/tcWebHooks/releases)- onto your Teamcity server. Follow the plugin instructions in your- Teamcity documentation, or refer to [the online Teamcity documentation][1].+ onto your TeamCity server. Follow the plugin instructions in your+ TeamCity documentation, or refer to [the online TeamCity documentation][1].1. Go to your TeamCity **Overview** page. Select the **Project** or **Build**you'd like to receive notifications about, and click on the **WebHooks** tab.@@ -32,7 +32,7 @@ Get Zulip notifications for your Teamcity builds!**Personal Builds**-When a user runs a personal build, if Zulip can map their Teamcity+When a user runs a personal build, if Zulip can map their TeamCityusername to a Zulip user (by comparing it with the Zulip user's emailaddress or full name), that Zulip user will receive a privatemessage with the result of their personal build.diff --git a/zerver/webhooks/teamcity/tests.py b/zerver/webhooks/teamcity/tests.pyindex dad6f6f3010..34b62ed1fcf 100644--- a/zerver/webhooks/teamcity/tests.py+++ b/zerver/webhooks/teamcity/tests.py@@ -6,7 +6,7 @@ from zerver.models import Recipient, get_realm, get_user_by_delivery_emailfrom zerver.webhooks.teamcity.view import MISCONFIGURED_PAYLOAD_TYPE_ERROR_MESSAGE-class TeamcityHookTests(WebhookTestCase):+class TeamCityHookTests(WebhookTestCase):STREAM_NAME = "teamcity"URL_TEMPLATE = "/api/v1/external/teamcity?stream={stream}&api_key={api_key}"TOPIC = "Project :: Compile"diff --git a/zerver/webhooks/teamcity/view.py b/zerver/webhooks/teamcity/view.pyindex 25098e5673e..64456e4da99 100644--- a/zerver/webhooks/teamcity/view.py+++ b/zerver/webhooks/teamcity/view.py@@ -48,7 +48,7 @@ def get_teamcity_property_value(property_list: List[Dict[str, str]], name: str)return None-@webhook_view("Teamcity")+@webhook_view("TeamCity")@has_request_variablesdef api_teamcity_webhook(request: HttpRequest,@@ -129,8 +129,8 @@ def api_teamcity_webhook(if teamcity_user is None:# We can't figure out who started this build - there's nothing we can do here.logging.info(- "Teamcity webhook couldn't find a matching Zulip user for "- "Teamcity user '%s' or '%s'",+ "TeamCity webhook couldn't find a matching Zulip user for "+ "TeamCity user '%s' or '%s'",teamcity_fullname,teamcity_shortname,)