Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
webhooks/travis: Improve severity emoji mapping.
sathwikshetty33bda04cfe4b06
diff --git a/zerver/webhooks/travis/tests.py b/zerver/webhooks/travis/tests.pyindex de7718c4f88..f2592d6741c 100644--- a/zerver/webhooks/travis/tests.py+++ b/zerver/webhooks/travis/tests.py@@ -8,12 +8,12 @@ from zerver.lib.test_classes import WebhookTestCaseclass TravisHookTests(WebhookTestCase):TOPIC_NAME = "builds"EXPECTED_NON_PULL_REQUEST_MESSAGE = (- ":counterclockwise: Build [#1](https://app.travis-ci.com/sathwikshetty33/travis-test/builds/277712204) "+ ":time_ticking: Build [#1](https://app.travis-ci.com/sathwikshetty33/travis-test/builds/277712204) ""**is in progress** for commit [Add Projects model.](https://github.com/sathwikshetty33/travis-test/commit/193da1b72346) by sathwikshetty33.")EXPECTED_PULL_REQUEST_MESSAGE = (- ":thumbs_down: Build [#42](https://app.travis-ci.com/sathwikshetty33/travis-test/builds/277927122) "+ ":warning: Build [#42](https://app.travis-ci.com/sathwikshetty33/travis-test/builds/277927122) ""**failed** for commit [feat: Created Name.txt.](https://github.com/sathwikshetty33/travis-test/pull/2) by Sathwik Shetty.")diff --git a/zerver/webhooks/travis/view.py b/zerver/webhooks/travis/view.pyindex d6975122927..7348e25ecc2 100644--- a/zerver/webhooks/travis/view.py+++ b/zerver/webhooks/travis/view.py@@ -17,14 +17,14 @@ ALL_EVENT_TYPES = []STATUS_MAP = {- "Passed": ("passed", ":thumbs_up:"),- "Fixed": ("was fixed", ":thumbs_up:"),- "Failed": ("failed", ":thumbs_down:"),- "Broken": ("is broken", ":thumbs_down:"),- "Still Failing": ("is still failing", ":thumbs_down:"),- "Canceled": ("was canceled", ":thumbs_down:"),- "Errored": ("errored", ":thumbs_down:"),- "Pending": ("is in progress", ":counterclockwise:"),+ "Passed": ("passed", ":check:"),+ "Fixed": ("was fixed", ":check:"),+ "Failed": ("failed", ":warning:"),+ "Broken": ("is broken", ":warning:"),+ "Still Failing": ("is still failing", ":warning:"),+ "Canceled": ("was canceled", ":no_entry:"),+ "Errored": ("errored", ":rotating_light:"),+ "Pending": ("is in progress", ":time_ticking:"),}MESSAGE_TEMPLATE = """