webhooks: Fix TeamCity capitalization.

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

View File

@ -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 services
not 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.

View File

@ -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 TeamCity
username to a Zulip user (by comparing it with the Zulip user's email
address or full name), that Zulip user will receive a private
message with the result of their personal build.

View File

@ -6,7 +6,7 @@ from zerver.models import Recipient, get_realm, get_user_by_delivery_email
from 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"

View File

@ -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_variables
def 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,
)