Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
integrations: Rebrand Clubhouse webhook integration to Shortcut.
Niloth Pf0a385e7e97f
diff --git a/static/images/integrations/bot_avatars/clubhouse.png b/static/images/integrations/bot_avatars/clubhouse.pngdeleted file mode 100644index af85333b18c..00000000000Binary files a/static/images/integrations/bot_avatars/clubhouse.png and /dev/null differdiff --git a/static/images/integrations/bot_avatars/shortcut.png b/static/images/integrations/bot_avatars/shortcut.pngnew file mode 100644index 00000000000..0a573fc4c83Binary files /dev/null and b/static/images/integrations/bot_avatars/shortcut.png differdiff --git a/static/images/integrations/clubhouse/001.png b/static/images/integrations/clubhouse/001.pngdeleted file mode 100644index 1e483a668c2..00000000000Binary files a/static/images/integrations/clubhouse/001.png and /dev/null differdiff --git a/static/images/integrations/logos/clubhouse.svg b/static/images/integrations/logos/clubhouse.svgdeleted file mode 100644index 0df298c3faf..00000000000--- a/static/images/integrations/logos/clubhouse.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" viewBox="0 0 288 224.3"><style id="style3">.st0{fill:#6515dd}</style><g id="g5" transform="translate(-144 -175.8)"><g id="g7"><g id="g9"><path class="st0" d="M164.9 358.3c-11.5 0-20.9 9.4-20.9 20.9 0 11.5 9.4 20.9 20.9 20.9 11.5 0 20.9-9.4 20.9-20.9 0-11.5-9.3-20.9-20.9-20.9z" id="path11" fill="#6515dd"/></g><path class="st0" d="m422.2 175.8-131.6 42v-41.5l-141.9 45.3v120.3l122.4-39.1v41.3L432 292.8l-43.6-42.6 33.8-74.4zM271.1 282.2 168.3 315v-79.1l102.8-32.8v79.1zm124.5 1.7-105 33.5v-79l96.7-30.9-22.2 46.8 30.5 29.6z" id="path13" fill="#6515dd"/></g></g></svg>\ No newline at end of filediff --git a/static/images/integrations/logos/shortcut.svg b/static/images/integrations/logos/shortcut.svgnew file mode 100644index 00000000000..3d8072dec20--- /dev/null+++ b/static/images/integrations/logos/shortcut.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="51" height="48" viewBox="0 0 51 48">+<path fill-rule="evenodd" d="M16.6064 0.9209L50.1175 0.920903L34.9456 17.1194L49.8264 31.5534L34.4955 47.9209L0.882808 47.9127L16.1182 31.6464L1.29619 17.2704L16.6064 0.9209ZM18.8541 34.2999L9.67134 44.1041L28.9672 44.1088L18.8541 34.2999ZM33.6045 43.2977L21.4595 31.5182L32.3402 19.9012L44.4851 31.6814L33.6045 43.2977ZM29.6044 17.2475L18.7236 28.8646L6.63727 17.1419L17.5173 5.52332L29.6044 17.2475ZM32.2098 14.4657L41.3269 4.7317L22.1745 4.73169L32.2098 14.4657Z" fill="#6B6CCA"/>+</svg>diff --git a/static/images/integrations/shortcut/001.png b/static/images/integrations/shortcut/001.pngnew file mode 100644index 00000000000..fc1c61f87a1Binary files /dev/null and b/static/images/integrations/shortcut/001.png differdiff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.pyindex 89c3fcdf137..962058905ec 100644--- a/zerver/lib/integrations.py+++ b/zerver/lib/integrations.py@@ -571,9 +571,6 @@ INCOMING_WEBHOOK_INTEGRATIONS: list[IncomingWebhookIntegration] = [[WebhookScreenshotConfig("github_job_completed.json")],display_name="CircleCI",),- IncomingWebhookIntegration(- "clubhouse", ["project-management"], [WebhookScreenshotConfig("story_create.json")]- ),IncomingWebhookIntegration("codeship",["continuous-integration", "deployment"],@@ -847,6 +844,12 @@ INCOMING_WEBHOOK_INTEGRATIONS: list[IncomingWebhookIntegration] = [IncomingWebhookIntegration("sentry", ["monitoring"], [WebhookScreenshotConfig("event_for_exception_python.json")]),+ IncomingWebhookIntegration(+ "shortcut",+ ["project-management"],+ [WebhookScreenshotConfig("story_create.json")],+ legacy_names=["clubhouse"],+ ),IncomingWebhookIntegration("slack",["communication"],diff --git a/zerver/webhooks/clubhouse/__init__.py b/zerver/webhooks/shortcut/__init__.pysimilarity index 100%rename from zerver/webhooks/clubhouse/__init__.pyrename to zerver/webhooks/shortcut/__init__.pydiff --git a/zerver/webhooks/clubhouse/doc.md b/zerver/webhooks/shortcut/doc.mdsimilarity index 65%rename from zerver/webhooks/clubhouse/doc.mdrename to zerver/webhooks/shortcut/doc.mdindex 88b675f6123..ee73ae06088 100644--- a/zerver/webhooks/clubhouse/doc.md+++ b/zerver/webhooks/shortcut/doc.md@@ -1,6 +1,6 @@-# Zulip Clubhouse integration+# Zulip Shortcut integration-Get Zulip notifications for your Clubhouse Stories and Epics!+Get Zulip notifications for your Shortcut Stories and Epics!{start_tabs}@@ -8,7 +8,7 @@ Get Zulip notifications for your Clubhouse Stories and Epics!1. {!generate-webhook-url-basic.md!}-1. Go to your Clubhouse Dashboard, and click on the settings icon in the+1. Go to your Shortcut Dashboard, and click on your profile icon in thetop-right corner. Go to **Integrations**, and select **Webhooks**.Click **+ Add New Webhook**.@@ -19,7 +19,7 @@ Get Zulip notifications for your Clubhouse Stories and Epics!{!congrats.md!}-+{!event-filtering-additional-feature.md!}diff --git a/zerver/webhooks/clubhouse/fixtures/epic_archive.json b/zerver/webhooks/shortcut/fixtures/epic_archive.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_archive.jsonrename to zerver/webhooks/shortcut/fixtures/epic_archive.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_create.json b/zerver/webhooks/shortcut/fixtures/epic_create.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_create.jsonrename to zerver/webhooks/shortcut/fixtures/epic_create.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_create_story.json b/zerver/webhooks/shortcut/fixtures/epic_create_story.jsonsimilarity index 93%rename from zerver/webhooks/clubhouse/fixtures/epic_create_story.jsonrename to zerver/webhooks/shortcut/fixtures/epic_create_story.jsonindex 32715fba6ad..bbf608c7dfb 100644--- a/zerver/webhooks/clubhouse/fixtures/epic_create_story.json+++ b/zerver/webhooks/shortcut/fixtures/epic_create_story.json@@ -9,7 +9,7 @@"id":23,"entity_type":"story","action":"create",- "app_url":"https://app.clubhouse.io/zulip/story/23",+ "app_url":"https://app.shortcut.com/zulip/story/23","description":"","story_type":"feature","name":"An epic story!",@@ -30,7 +30,7 @@"action":"update","name":"Add super cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"subject_story_link_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/epic_delete.json b/zerver/webhooks/shortcut/fixtures/epic_delete.jsonsimilarity index 89%rename from zerver/webhooks/clubhouse/fixtures/epic_delete.jsonrename to zerver/webhooks/shortcut/fixtures/epic_delete.jsonindex 8e4faba5515..52226eb02d8 100644--- a/zerver/webhooks/clubhouse/fixtures/epic_delete.json+++ b/zerver/webhooks/shortcut/fixtures/epic_delete.json@@ -9,7 +9,7 @@"id":17,"entity_type":"epic","action":"delete",- "name":"Clubhouse Fork"+ "name":"Shortcut Fork"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/epic_update_add_comment.json b/zerver/webhooks/shortcut/fixtures/epic_update_add_comment.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_update_add_comment.jsonrename to zerver/webhooks/shortcut/fixtures/epic_update_add_comment.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_update_add_description.json b/zerver/webhooks/shortcut/fixtures/epic_update_add_description.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_update_add_description.jsonrename to zerver/webhooks/shortcut/fixtures/epic_update_add_description.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_update_change_description.json b/zerver/webhooks/shortcut/fixtures/epic_update_change_description.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_update_change_description.jsonrename to zerver/webhooks/shortcut/fixtures/epic_update_change_description.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_update_change_state.json b/zerver/webhooks/shortcut/fixtures/epic_update_change_state.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_update_change_state.jsonrename to zerver/webhooks/shortcut/fixtures/epic_update_change_state.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_update_change_title.json b/zerver/webhooks/shortcut/fixtures/epic_update_change_title.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_update_change_title.jsonrename to zerver/webhooks/shortcut/fixtures/epic_update_change_title.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/epic_update_remove_description.json b/zerver/webhooks/shortcut/fixtures/epic_update_remove_description.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/epic_update_remove_description.jsonrename to zerver/webhooks/shortcut/fixtures/epic_update_remove_description.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/story_archive.json b/zerver/webhooks/shortcut/fixtures/story_archive.jsonsimilarity index 89%rename from zerver/webhooks/clubhouse/fixtures/story_archive.jsonrename to zerver/webhooks/shortcut/fixtures/story_archive.jsonindex 10bb4761260..e3fcde26253 100644--- a/zerver/webhooks/clubhouse/fixtures/story_archive.json+++ b/zerver/webhooks/shortcut/fixtures/story_archive.json@@ -11,7 +11,7 @@"action":"update","name":"Story 2","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/9",+ "app_url":"https://app.shortcut.com/zulip/story/9","changes":{"archived":{"new":true,diff --git a/zerver/webhooks/clubhouse/fixtures/story_comment_updated.json b/zerver/webhooks/shortcut/fixtures/story_comment_updated.jsonsimilarity index 92%rename from zerver/webhooks/clubhouse/fixtures/story_comment_updated.jsonrename to zerver/webhooks/shortcut/fixtures/story_comment_updated.jsonindex 0f45550737d..cac9830e7b6 100644--- a/zerver/webhooks/clubhouse/fixtures/story_comment_updated.json+++ b/zerver/webhooks/shortcut/fixtures/story_comment_updated.json@@ -25,7 +25,7 @@"entity_type":"story","name":"Add super cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11"+ "app_url":"https://app.shortcut.com/zulip/story/11"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/story_create.json b/zerver/webhooks/shortcut/fixtures/story_create.jsonsimilarity index 93%rename from zerver/webhooks/clubhouse/fixtures/story_create.jsonrename to zerver/webhooks/shortcut/fixtures/story_create.jsonindex b6aa5ccad54..b12515f7d1b 100644--- a/zerver/webhooks/clubhouse/fixtures/story_create.json+++ b/zerver/webhooks/shortcut/fixtures/story_create.json@@ -11,7 +11,7 @@"action":"create","name":"Add cool feature!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","project_id":6,"description":"We should probably add this cool feature!","workflow_state_id":500000008,diff --git a/zerver/webhooks/clubhouse/fixtures/story_delete.json b/zerver/webhooks/shortcut/fixtures/story_delete.jsonsimilarity index 100%rename from zerver/webhooks/clubhouse/fixtures/story_delete.jsonrename to zerver/webhooks/shortcut/fixtures/story_delete.jsondiff --git a/zerver/webhooks/clubhouse/fixtures/story_task_complete.json b/zerver/webhooks/shortcut/fixtures/story_task_complete.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_task_complete.jsonrename to zerver/webhooks/shortcut/fixtures/story_task_complete.jsonindex b6f4ac5426a..0e8febecbf7 100644--- a/zerver/webhooks/clubhouse/fixtures/story_task_complete.json+++ b/zerver/webhooks/shortcut/fixtures/story_task_complete.json@@ -25,7 +25,7 @@"entity_type":"story","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11"+ "app_url":"https://app.shortcut.com/zulip/story/11"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/story_task_create.json b/zerver/webhooks/shortcut/fixtures/story_task_create.jsonsimilarity index 92%rename from zerver/webhooks/clubhouse/fixtures/story_task_create.jsonrename to zerver/webhooks/shortcut/fixtures/story_task_create.jsonindex e53babe209a..e70f2888446 100644--- a/zerver/webhooks/clubhouse/fixtures/story_task_create.json+++ b/zerver/webhooks/shortcut/fixtures/story_task_create.json@@ -18,7 +18,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"task_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_task_delete.json b/zerver/webhooks/shortcut/fixtures/story_task_delete.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_task_delete.jsonrename to zerver/webhooks/shortcut/fixtures/story_task_delete.jsonindex e7059a280f1..cb6aa7c9351 100644--- a/zerver/webhooks/clubhouse/fixtures/story_task_delete.json+++ b/zerver/webhooks/shortcut/fixtures/story_task_delete.json@@ -17,7 +17,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"task_ids":{"removes":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_task_not_complete.json b/zerver/webhooks/shortcut/fixtures/story_task_not_complete.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_task_not_complete.jsonrename to zerver/webhooks/shortcut/fixtures/story_task_not_complete.jsonindex 3497610f26f..6df0046cfbf 100644--- a/zerver/webhooks/clubhouse/fixtures/story_task_not_complete.json+++ b/zerver/webhooks/shortcut/fixtures/story_task_not_complete.json@@ -25,7 +25,7 @@"entity_type":"story","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11"+ "app_url":"https://app.shortcut.com/zulip/story/11"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/story_unarchive.json b/zerver/webhooks/shortcut/fixtures/story_unarchive.jsonsimilarity index 89%rename from zerver/webhooks/clubhouse/fixtures/story_unarchive.jsonrename to zerver/webhooks/shortcut/fixtures/story_unarchive.jsonindex 35c4289acd6..35d765fa5b3 100644--- a/zerver/webhooks/clubhouse/fixtures/story_unarchive.json+++ b/zerver/webhooks/shortcut/fixtures/story_unarchive.json@@ -11,7 +11,7 @@"action":"update","name":"Story 2","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/9",+ "app_url":"https://app.shortcut.com/zulip/story/9","changes":{"archived":{"new":false,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_attachment.json b/zerver/webhooks/shortcut/fixtures/story_update_add_attachment.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_attachment.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_attachment.jsonindex e4fbf321ac4..65ef47358e2 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_attachment.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_attachment.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"file_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_comment.json b/zerver/webhooks/shortcut/fixtures/story_update_add_comment.jsonsimilarity index 92%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_comment.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_comment.jsonindex 6bf0a316d19..6ba70c4f04a 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_comment.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_comment.json@@ -18,7 +18,7 @@"action":"update","name":"Add cool feature!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"comment_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_description.json b/zerver/webhooks/shortcut/fixtures/story_update_add_description.jsonsimilarity index 89%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_description.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_description.jsonindex b5931c03b01..06a8158e390 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_description.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_description.json@@ -11,7 +11,7 @@"action":"update","name":"Story 2","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/9",+ "app_url":"https://app.shortcut.com/zulip/story/9","changes":{"description":{"new":"Added a description.",diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_epic.json b/zerver/webhooks/shortcut/fixtures/story_update_add_epic.jsonsimilarity index 90%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_epic.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_epic.jsonindex 2413d2c0ceb..b1756156565 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_epic.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_epic.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"epic_id":{"new":7diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_estimate.json b/zerver/webhooks/shortcut/fixtures/story_update_add_estimate.jsonsimilarity index 88%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_estimate.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_estimate.jsonindex 94f1da18c95..b58da96d484 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_estimate.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_estimate.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"estimate":{"new":4diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_branch.json b/zerver/webhooks/shortcut/fixtures/story_update_add_github_branch.jsonsimilarity index 96%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_github_branch.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_github_branch.jsonindex a74fbb97191..0d2ba1655f0 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_branch.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_github_branch.json@@ -17,7 +17,7 @@"action":"update","name":"Testing pull requests with Story","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/27",+ "app_url":"https://app.shortcut.com/zulip/story/27","changes":{"branch_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_multiple_pull_requests.json b/zerver/webhooks/shortcut/fixtures/story_update_add_github_multiple_pull_requests.jsonsimilarity index 95%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_github_multiple_pull_requests.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_github_multiple_pull_requests.jsonindex 9bd2ec7b6dd..72bbad297f3 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_multiple_pull_requests.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_github_multiple_pull_requests.json@@ -25,7 +25,7 @@"action": "update","name": "Story1","story_type": "feature",- "app_url": "https://app.clubhouse.io/pig208/story/17",+ "app_url": "https://app.shortcut.com/pig208/story/17","changes": {"pull_request_ids": {"adds": [@@ -55,7 +55,7 @@"action": "update","name": "Story2","story_type": "feature",- "app_url": "https://app.clubhouse.io/pig208/story/18",+ "app_url": "https://app.shortcut.com/pig208/story/18","changes": {"pull_request_ids": {"adds": [diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_multiple_pull_requests_with_comment.json b/zerver/webhooks/shortcut/fixtures/story_update_add_github_multiple_pull_requests_with_comment.jsonsimilarity index 94%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_github_multiple_pull_requests_with_comment.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_github_multiple_pull_requests_with_comment.jsonindex 18d8c902af1..e941fae4947 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_multiple_pull_requests_with_comment.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_github_multiple_pull_requests_with_comment.json@@ -18,7 +18,7 @@"action": "update","name": "new1","story_type": "feature",- "app_url": "https://app.clubhouse.io/pig208/story/26",+ "app_url": "https://app.shortcut.com/pig208/story/26","changes": {"pull_request_ids": {"adds": [@@ -48,7 +48,7 @@"action": "update","name": "new2","story_type": "feature",- "app_url": "https://app.clubhouse.io/pig208/story/27",+ "app_url": "https://app.shortcut.com/pig208/story/27","changes": {"pull_request_ids": {"adds": [diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request.json b/zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request.jsonsimilarity index 96%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request.jsonindex 904f6d28e58..f0940530aa4 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request.json@@ -30,7 +30,7 @@"action":"update","name":"Testing pull requests with Story","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/28",+ "app_url":"https://app.shortcut.com/zulip/story/28","changes":{"started":{"new":true,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request_with_comment.json b/zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request_with_comment.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request_with_comment.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request_with_comment.jsonindex c226e88be53..12af01be9dc 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request_with_comment.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request_with_comment.json@@ -18,7 +18,7 @@"action": "update","name": "asd2","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/15",+ "app_url": "https://app.shortcut.com/pig208/story/15","changes":{"pull_request_ids": {diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request_without_workflow_state.json b/zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request_without_workflow_state.jsonsimilarity index 96%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request_without_workflow_state.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request_without_workflow_state.jsonindex 0f9ad4b321a..cdbae69e03e 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_github_pull_request_without_workflow_state.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_github_pull_request_without_workflow_state.json@@ -30,7 +30,7 @@"action":"update","name":"Testing pull requests with Story","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/28",+ "app_url":"https://app.shortcut.com/zulip/story/28","changes":{"started":{"new":true,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_label.json b/zerver/webhooks/shortcut/fixtures/story_update_add_label.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_label.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_label.jsonindex 63fd910af5b..58206703bb9 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_label.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_label.json@@ -11,7 +11,7 @@"action":"update","name":"An epic story!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/23",+ "app_url":"https://app.shortcut.com/zulip/story/23","changes":{"label_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_label_name_in_action.json b/zerver/webhooks/shortcut/fixtures/story_update_add_label_name_in_action.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_label_name_in_action.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_label_name_in_action.jsonindex 9344fb9c8c6..ac842504a35 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_label_name_in_action.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_label_name_in_action.json@@ -16,7 +16,7 @@}},"id":11200,- "app_url":"https:\/\/app.clubhouse.io\/zulip\/story\/28",+ "app_url":"https:\/\/app.shortcut.com\/zulip\/story\/28","name":"An emotional story!"},{diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_multiple_labels.json b/zerver/webhooks/shortcut/fixtures/story_update_add_multiple_labels.jsonsimilarity index 92%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_multiple_labels.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_multiple_labels.jsonindex 6a0f0d9debd..f1d8f5c881a 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_multiple_labels.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_multiple_labels.json@@ -11,7 +11,7 @@"action":"update","name":"An epic story!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/23",+ "app_url":"https://app.shortcut.com/zulip/story/23","changes":{"label_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_add_owner.json b/zerver/webhooks/shortcut/fixtures/story_update_add_owner.jsonsimilarity index 90%rename from zerver/webhooks/clubhouse/fixtures/story_update_add_owner.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_add_owner.jsonindex 271cd9d918b..4de1674a094 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_add_owner.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_add_owner.json@@ -11,7 +11,7 @@"action":"update","name":"A new story by Shakespeare!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/26",+ "app_url":"https://app.shortcut.com/zulip/story/26","changes":{"owner_ids":{"adds":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_change_epic.json b/zerver/webhooks/shortcut/fixtures/story_update_change_epic.jsonsimilarity index 88%rename from zerver/webhooks/clubhouse/fixtures/story_update_change_epic.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_change_epic.jsonindex f4bc1d317e9..05230a915d8 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_change_epic.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_change_epic.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"epic_id":{"new":17,@@ -24,7 +24,7 @@{"id":17,"entity_type":"epic",- "name":"Clubhouse Fork"+ "name":"Shortcut Fork"},{"id":7,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_change_estimate.json b/zerver/webhooks/shortcut/fixtures/story_update_change_estimate.jsonsimilarity index 89%rename from zerver/webhooks/clubhouse/fixtures/story_update_change_estimate.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_change_estimate.jsonindex 814b0a38a58..0b1613a2160 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_change_estimate.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_change_estimate.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"estimate":{"new":4,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_change_project.json b/zerver/webhooks/shortcut/fixtures/story_update_change_project.jsonsimilarity index 92%rename from zerver/webhooks/clubhouse/fixtures/story_update_change_project.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_change_project.jsonindex 95848bb3d88..b4b34370760 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_change_project.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_change_project.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"project_id":{"new":16,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_change_state.json b/zerver/webhooks/shortcut/fixtures/story_update_change_state.jsonsimilarity index 95%rename from zerver/webhooks/clubhouse/fixtures/story_update_change_state.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_change_state.jsonindex 70cb75b5ef7..77a457607c3 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_change_state.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_change_state.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"started":{"new":true,diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_change_title.json b/zerver/webhooks/shortcut/fixtures/story_update_change_title.jsonsimilarity index 90%rename from zerver/webhooks/clubhouse/fixtures/story_update_change_title.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_change_title.jsonindex 0f66ede68f7..f90ef385cf4 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_change_title.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_change_title.json@@ -11,7 +11,7 @@"action":"update","name":"Add super cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"name":{"new":"Add super cool feature!",diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_change_type.json b/zerver/webhooks/shortcut/fixtures/story_update_change_type.jsonsimilarity index 89%rename from zerver/webhooks/clubhouse/fixtures/story_update_change_type.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_change_type.jsonindex dc8d065c2e4..678e3ea5ce6 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_change_type.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_change_type.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"story_type":{"new":"bug",diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_description.json b/zerver/webhooks/shortcut/fixtures/story_update_description.jsonsimilarity index 90%rename from zerver/webhooks/clubhouse/fixtures/story_update_description.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_description.jsonindex eeadac728c9..dc6b95fa52a 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_description.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_description.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"description":{"new":"We should probably add this cool feature! Just edited this. :)",diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_everything_at_once.json b/zerver/webhooks/shortcut/fixtures/story_update_everything_at_once.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_everything_at_once.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_everything_at_once.jsonindex 8aeb68bbef2..cfc8187cf80 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_everything_at_once.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_everything_at_once.json@@ -10,7 +10,7 @@"action": "update","name": "asd4","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/17",+ "app_url": "https://app.shortcut.com/pig208/story/17","changes": {"story_type": {"new": "bug",@@ -67,7 +67,7 @@"action": "update","name": "new1","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/26",+ "app_url": "https://app.shortcut.com/pig208/story/26","changes": {"story_type": {"new": "bug",@@ -124,7 +124,7 @@"action": "update","name": "new2","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/27",+ "app_url": "https://app.shortcut.com/pig208/story/27","changes": {"story_type": {"new": "bug",@@ -198,19 +198,19 @@"id": 8,"entity_type": "label","name": "low priority",- "app_url": "https://app.clubhouse.io/pig208/label/8"+ "app_url": "https://app.shortcut.com/pig208/label/8"},{"id": 23,"entity_type": "epic","name": "testeipc",- "app_url": "https://app.clubhouse.io/pig208/epic/23"+ "app_url": "https://app.shortcut.com/pig208/epic/23"},{"id": 2,"entity_type": "project","name": "Product Development",- "app_url": "https://app.clubhouse.io/pig208/project/2"+ "app_url": "https://app.shortcut.com/pig208/project/2"},{"id": "6071adb0-641f-46c4-b5e1-4945dae399ea",@@ -221,13 +221,13 @@"id": 29,"entity_type": "epic","name": "epic",- "app_url": "https://app.clubhouse.io/pig208/epic/29"+ "app_url": "https://app.shortcut.com/pig208/epic/29"},{"id": 28,"entity_type": "project","name": "test2",- "app_url": "https://app.clubhouse.io/pig208/project/28"+ "app_url": "https://app.shortcut.com/pig208/project/28"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_everything_at_once_skip_removed_labels.json b/zerver/webhooks/shortcut/fixtures/story_update_everything_at_once_skip_removed_labels.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_everything_at_once_skip_removed_labels.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_everything_at_once_skip_removed_labels.jsonindex 7776fd40d90..61030ae2cff 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_everything_at_once_skip_removed_labels.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_everything_at_once_skip_removed_labels.json@@ -10,7 +10,7 @@"action": "update","name": "asd4","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/17",+ "app_url": "https://app.shortcut.com/pig208/story/17","changes": {"story_type": {"new": "bug",@@ -67,7 +67,7 @@"action": "update","name": "new1","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/26",+ "app_url": "https://app.shortcut.com/pig208/story/26","changes": {"story_type": {"new": "bug",@@ -124,7 +124,7 @@"action": "update","name": "new2","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/27",+ "app_url": "https://app.shortcut.com/pig208/story/27","changes": {"story_type": {"new": "bug",@@ -198,19 +198,19 @@"id": 8,"entity_type": "label","name": "low priority",- "app_url": "https://app.clubhouse.io/pig208/label/8"+ "app_url": "https://app.shortcut.com/pig208/label/8"},{"id": 23,"entity_type": "epic","name": "testeipc",- "app_url": "https://app.clubhouse.io/pig208/epic/23"+ "app_url": "https://app.shortcut.com/pig208/epic/23"},{"id": 2,"entity_type": "project","name": "Product Development",- "app_url": "https://app.clubhouse.io/pig208/project/2"+ "app_url": "https://app.shortcut.com/pig208/project/2"},{"id": "6071adb0-641f-46c4-b5e1-4945dae399ea",@@ -221,13 +221,13 @@"id": 29,"entity_type": "epic","name": "epic",- "app_url": "https://app.clubhouse.io/pig208/epic/29"+ "app_url": "https://app.shortcut.com/pig208/epic/29"},{"id": 28,"entity_type": "project","name": "test2",- "app_url": "https://app.clubhouse.io/pig208/project/28"+ "app_url": "https://app.shortcut.com/pig208/project/28"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_multiple_at_once.json b/zerver/webhooks/shortcut/fixtures/story_update_multiple_at_once.jsonsimilarity index 79%rename from zerver/webhooks/clubhouse/fixtures/story_update_multiple_at_once.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_multiple_at_once.jsonindex 78657249f89..12f8bc52941 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_multiple_at_once.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_multiple_at_once.json@@ -10,7 +10,7 @@"action": "update","name": "asd4","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/17",+ "app_url": "https://app.shortcut.com/pig208/story/17","changes": {"story_type": {"new": "bug",@@ -24,7 +24,7 @@"action": "update","name": "new1","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/26",+ "app_url": "https://app.shortcut.com/pig208/story/26","changes": {"epic_id": {"new": 23,@@ -38,7 +38,7 @@"action": "update","name": "new2","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/27",+ "app_url": "https://app.shortcut.com/pig208/story/27","changes": {"label_ids": {"adds": [@@ -53,7 +53,7 @@"action": "update","name": "new3","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/28",+ "app_url": "https://app.shortcut.com/pig208/story/28","changes": {"workflow_state_id": {"new": 500000010,@@ -67,7 +67,7 @@"action": "update","name": "new4","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/29",+ "app_url": "https://app.shortcut.com/pig208/story/29","changes": {"project_id": {"new": 28,@@ -98,19 +98,19 @@"id": 8,"entity_type": "label","name": "low priority",- "app_url": "https://app.clubhouse.io/pig208/label/8"+ "app_url": "https://app.shortcut.com/pig208/label/8"},{"id": 23,"entity_type": "epic","name": "testeipc",- "app_url": "https://app.clubhouse.io/pig208/epic/23"+ "app_url": "https://app.shortcut.com/pig208/epic/23"},{"id": 2,"entity_type": "project","name": "Product Development",- "app_url": "https://app.clubhouse.io/pig208/project/2"+ "app_url": "https://app.shortcut.com/pig208/project/2"},{"id": "6071adb0-641f-46c4-b5e1-4945dae399ea",@@ -121,13 +121,13 @@"id": 29,"entity_type": "epic","name": "epic",- "app_url": "https://app.clubhouse.io/pig208/epic/29"+ "app_url": "https://app.shortcut.com/pig208/epic/29"},{"id": 28,"entity_type": "project","name": "test2",- "app_url": "https://app.clubhouse.io/pig208/project/28"+ "app_url": "https://app.shortcut.com/pig208/project/28"}]}diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_multiple_not_supported.json b/zerver/webhooks/shortcut/fixtures/story_update_multiple_not_supported.jsonsimilarity index 84%rename from zerver/webhooks/clubhouse/fixtures/story_update_multiple_not_supported.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_multiple_not_supported.jsonindex 0b543e3857b..05e37214f89 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_multiple_not_supported.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_multiple_not_supported.json@@ -10,7 +10,7 @@"action": "update","name": "asd4","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/17",+ "app_url": "https://app.shortcut.com/pig208/story/17","changes": {"deadline": {"new": "2021-04-12T16:00:00Z",@@ -24,7 +24,7 @@"action": "update","name": "new1","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/26",+ "app_url": "https://app.shortcut.com/pig208/story/26","changes": {"owner_ids": {"adds": [@@ -39,7 +39,7 @@"action": "update","name": "new2","story_type": "bug",- "app_url": "https://app.clubhouse.io/pig208/story/27",+ "app_url": "https://app.shortcut.com/pig208/story/27","changes": {"follower_ids": {"adds": [diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_remove_attachment.json b/zerver/webhooks/shortcut/fixtures/story_update_remove_attachment.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_remove_attachment.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_remove_attachment.jsonindex 06650ee93a3..b8efae6b193 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_remove_attachment.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_remove_attachment.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"file_ids":{"removes":[diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_remove_description.json b/zerver/webhooks/shortcut/fixtures/story_update_remove_description.jsonsimilarity index 90%rename from zerver/webhooks/clubhouse/fixtures/story_update_remove_description.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_remove_description.jsonindex be05824400e..eeabf3c4d15 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_remove_description.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_remove_description.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"description":{"new":"",diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_remove_epic.json b/zerver/webhooks/shortcut/fixtures/story_update_remove_epic.jsonsimilarity index 90%rename from zerver/webhooks/clubhouse/fixtures/story_update_remove_epic.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_remove_epic.jsonindex 89e839fde7f..eab51a4af0b 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_remove_epic.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_remove_epic.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"epic_id":{"old":7diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_remove_estimate.json b/zerver/webhooks/shortcut/fixtures/story_update_remove_estimate.jsonsimilarity index 88%rename from zerver/webhooks/clubhouse/fixtures/story_update_remove_estimate.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_remove_estimate.jsonindex 219b76c0091..4f601296807 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_remove_estimate.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_remove_estimate.json@@ -11,7 +11,7 @@"action":"update","name":"Add cool feature!","story_type":"bug",- "app_url":"https://app.clubhouse.io/zulip/story/11",+ "app_url":"https://app.shortcut.com/zulip/story/11","changes":{"estimate":{"old":4diff --git a/zerver/webhooks/clubhouse/fixtures/story_update_remove_label.json b/zerver/webhooks/shortcut/fixtures/story_update_remove_label.jsonsimilarity index 91%rename from zerver/webhooks/clubhouse/fixtures/story_update_remove_label.jsonrename to zerver/webhooks/shortcut/fixtures/story_update_remove_label.jsonindex 7bbe7d26d2e..a8efc16cd0c 100644--- a/zerver/webhooks/clubhouse/fixtures/story_update_remove_label.json+++ b/zerver/webhooks/shortcut/fixtures/story_update_remove_label.json@@ -11,7 +11,7 @@"action":"update","name":"An epic story!","story_type":"feature",- "app_url":"https://app.clubhouse.io/zulip/story/23",+ "app_url":"https://app.shortcut.com/zulip/story/23","changes":{"label_ids":{"removes":[diff --git a/zerver/webhooks/clubhouse/tests.py b/zerver/webhooks/shortcut/tests.pysimilarity index 80%rename from zerver/webhooks/clubhouse/tests.pyrename to zerver/webhooks/shortcut/tests.pyindex 3503c8b1be6..77a16754637 100644--- a/zerver/webhooks/clubhouse/tests.py+++ b/zerver/webhooks/shortcut/tests.py@@ -4,34 +4,34 @@ from unittest.mock import MagicMock, call, patchfrom zerver.lib.test_classes import WebhookTestCase-class ClubhouseWebhookTest(WebhookTestCase):+class ShortcutWebhookTest(WebhookTestCase):+ def test_legacy_urls(self) -> None:+ expected_message = "New story [Add cool feature!](https://app.shortcut.com/zulip/story/11) of type **feature** was created."++ legacy_names = ["clubhouse"]+ for legacy_name in legacy_names:+ self.url = self.build_webhook_url(legacy_name=legacy_name)+ self.check_webhook("story_create", "Add cool feature!", expected_message)+def test_story_create(self) -> None:- expected_message = "New story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) of type **feature** was created."- self.check_webhook(- "story_create",- "Add cool feature!",- expected_message,- )+ expected_message = "New story [Add cool feature!](https://app.shortcut.com/zulip/story/11) of type **feature** was created."+ self.check_webhook("story_create", "Add cool feature!", expected_message)def test_story_delete(self) -> None:expected_message = "The story **New random story** was deleted."self.check_webhook("story_delete", "New random story", expected_message)def test_epic_story_create(self) -> None:- expected_message = "New story [An epic story!](https://app.clubhouse.io/zulip/story/23) was created and added to the epic **New Cool Epic!**."- self.check_webhook(- "epic_create_story",- "An epic story!",- expected_message,- )+ expected_message = "New story [An epic story!](https://app.shortcut.com/zulip/story/23) was created and added to the epic **New Cool Epic!**."+ self.check_webhook("epic_create_story", "An epic story!", expected_message)def test_epic_delete(self) -> None:- expected_message = "The epic **Clubhouse Fork** was deleted."- self.check_webhook("epic_delete", "Clubhouse Fork", expected_message)+ expected_message = "The epic **Shortcut Fork** was deleted."+ self.check_webhook("epic_delete", "Shortcut Fork", expected_message)def test_story_archive(self) -> None:expected_message = (- "The story [Story 2](https://app.clubhouse.io/zulip/story/9) was archived."+ "The story [Story 2](https://app.shortcut.com/zulip/story/9) was archived.")self.check_webhook("story_archive", "Story 2", expected_message)@@ -41,7 +41,7 @@ class ClubhouseWebhookTest(WebhookTestCase):def test_story_unarchive(self) -> None:expected_message = (- "The story [Story 2](https://app.clubhouse.io/zulip/story/9) was unarchived."+ "The story [Story 2](https://app.shortcut.com/zulip/story/9) was unarchived.")self.check_webhook("story_unarchive", "Story 2", expected_message)@@ -54,7 +54,7 @@ class ClubhouseWebhookTest(WebhookTestCase):self.check_webhook("epic_update_add_comment", "New Cool Epic!", expected_message)def test_story_update_add_comment(self) -> None:- expected_message = "New comment added to the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11):\n``` quote\nJust leaving a comment here!\n```"+ expected_message = "New comment added to the story [Add cool feature!](https://app.shortcut.com/zulip/story/11):\n``` quote\nJust leaving a comment here!\n```"self.check_webhook("story_update_add_comment", "Add cool feature!", expected_message)def test_epic_update_add_description(self) -> None:@@ -70,15 +70,15 @@ class ClubhouseWebhookTest(WebhookTestCase):self.check_webhook("epic_update_change_description", "New Cool Epic!", expected_message)def test_story_update_add_description(self) -> None:- expected_message = "New description added to the story [Story 2](https://app.clubhouse.io/zulip/story/9):\n``` quote\nAdded a description.\n```"+ expected_message = "New description added to the story [Story 2](https://app.shortcut.com/zulip/story/9):\n``` quote\nAdded a description.\n```"self.check_webhook("story_update_add_description", "Story 2", expected_message)def test_story_update_remove_description(self) -> None:- expected_message = "Description for the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was removed."+ expected_message = "Description for the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was removed."self.check_webhook("story_update_remove_description", "Add cool feature!", expected_message)def test_story_update_change_description(self) -> None:- expected_message = "Description for the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was changed from:\n``` quote\nWe should probably add this cool feature!\n```\nto\n``` quote\nWe should probably add this cool feature! Just edited this. :)\n```"+ expected_message = "Description for the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was changed from:\n``` quote\nWe should probably add this cool feature!\n```\nto\n``` quote\nWe should probably add this cool feature! Just edited this. :)\n```"self.check_webhook("story_update_description", "Add cool feature!", expected_message)def test_epic_update_change_state(self) -> None:@@ -88,7 +88,7 @@ class ClubhouseWebhookTest(WebhookTestCase):self.check_webhook("epic_update_change_state", "New Cool Epic!", expected_message)def test_story_update_change_state(self) -> None:- expected_message = "State of the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was changed from **Unscheduled** to **Ready for Review**."+ expected_message = "State of the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was changed from **Unscheduled** to **Ready for Review**."self.check_webhook("story_update_change_state", "Add cool feature!", expected_message)def test_epic_update_change_name(self) -> None:@@ -96,28 +96,28 @@ class ClubhouseWebhookTest(WebhookTestCase):self.check_webhook("epic_update_change_title", "New Cool Epic!", expected_message)def test_story_update_change_name(self) -> None:- expected_message = "The name of the story [Add super cool feature!](https://app.clubhouse.io/zulip/story/11) was changed from:\n``` quote\nAdd cool feature!\n```\nto\n``` quote\nAdd super cool feature!\n```"+ expected_message = "The name of the story [Add super cool feature!](https://app.shortcut.com/zulip/story/11) was changed from:\n``` quote\nAdd cool feature!\n```\nto\n``` quote\nAdd super cool feature!\n```"self.check_webhook("story_update_change_title", "Add super cool feature!", expected_message)def test_story_update_add_owner(self) -> None:- expected_message = "New owner added to the story [A new story by Shakespeare!](https://app.clubhouse.io/zulip/story/26)."+ expected_message = "New owner added to the story [A new story by Shakespeare!](https://app.shortcut.com/zulip/story/26)."self.check_webhook("story_update_add_owner", "A new story by Shakespeare!", expected_message)def test_story_task_created(self) -> None:- expected_message = "Task **Added a new task** was added to the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11)."+ expected_message = "Task **Added a new task** was added to the story [Add cool feature!](https://app.shortcut.com/zulip/story/11)."self.check_webhook("story_task_create", "Add cool feature!", expected_message)def test_story_task_deleted(self) -> None:- expected_message = "Task **Added a new task** was removed from the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11)."+ expected_message = "Task **Added a new task** was removed from the story [Add cool feature!](https://app.shortcut.com/zulip/story/11)."self.check_webhook("story_task_delete", "Add cool feature!", expected_message)def test_story_task_completed(self) -> None:- expected_message = "Task **A new task for this story** ([Add cool feature!](https://app.clubhouse.io/zulip/story/11)) was completed. :tada:"+ expected_message = "Task **A new task for this story** ([Add cool feature!](https://app.shortcut.com/zulip/story/11)) was completed. :tada:"self.check_webhook("story_task_complete", "Add cool feature!", expected_message)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_task_incomplete_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:payload = self.get_body("story_task_not_complete")result = self.client_post(self.url, payload, content_type="application/json")@@ -126,36 +126,36 @@ class ClubhouseWebhookTest(WebhookTestCase):def test_story_epic_changed(self) -> None:expected_message = (- "The story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was moved from **Release 1.9**"- " to **Clubhouse Fork**."+ "The story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was moved from **Release 1.9**"+ " to **Shortcut Fork**.")self.check_webhook("story_update_change_epic", "Add cool feature!", expected_message)def test_story_epic_added(self) -> None:- expected_message = "The story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was added to the epic **Release 1.9**."+ expected_message = "The story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was added to the epic **Release 1.9**."self.check_webhook("story_update_add_epic", "Add cool feature!", expected_message)def test_story_epic_removed(self) -> None:- expected_message = "The story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was removed from the epic **Release 1.9**."+ expected_message = "The story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was removed from the epic **Release 1.9**."self.check_webhook("story_update_remove_epic", "Add cool feature!", expected_message)def test_story_estimate_changed(self) -> None:- expected_message = "The estimate for the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was set to 4 points."+ expected_message = "The estimate for the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was set to 4 points."self.check_webhook("story_update_change_estimate", "Add cool feature!", expected_message)def test_story_estimate_added(self) -> None:- expected_message = "The estimate for the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was set to 4 points."+ expected_message = "The estimate for the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was set to 4 points."self.check_webhook("story_update_add_estimate", "Add cool feature!", expected_message)def test_story_estimate_removed(self) -> None:- expected_message = "The estimate for the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was set to *Unestimated*."+ expected_message = "The estimate for the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was set to *Unestimated*."self.check_webhook("story_update_remove_estimate", "Add cool feature!", expected_message)def test_story_file_attachment_added(self) -> None:- expected_message = "A file attachment `zuliprc` was added to the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11)."+ expected_message = "A file attachment `zuliprc` was added to the story [Add cool feature!](https://app.shortcut.com/zulip/story/11)."self.check_webhook("story_update_add_attachment", "Add cool feature!", expected_message)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_file_attachment_removed_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -165,20 +165,20 @@ class ClubhouseWebhookTest(WebhookTestCase):self.assert_json_success(result)def test_story_label_added(self) -> None:- expected_message = "The label **mockup** was added to the story [An epic story!](https://app.clubhouse.io/zulip/story/23)."+ expected_message = "The label **mockup** was added to the story [An epic story!](https://app.shortcut.com/zulip/story/23)."self.check_webhook("story_update_add_label", "An epic story!", expected_message)def test_story_label_multiple_added(self) -> None:- expected_message = "The labels **mockup**, **label** were added to the story [An epic story!](https://app.clubhouse.io/zulip/story/23)."+ expected_message = "The labels **mockup**, **label** were added to the story [An epic story!](https://app.shortcut.com/zulip/story/23)."self.check_webhook("story_update_add_multiple_labels", "An epic story!", expected_message)def test_story_label_added_label_name_in_actions(self) -> None:- expected_message = "The label **sad** was added to the story [An emotional story!](https://app.clubhouse.io/zulip/story/28)."+ expected_message = "The label **sad** was added to the story [An emotional story!](https://app.shortcut.com/zulip/story/28)."self.check_webhook("story_update_add_label_name_in_action", "An emotional story!", expected_message)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_label_removed_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:payload = self.get_body("story_update_remove_label")result = self.client_post(self.url, payload, content_type="application/json")@@ -186,15 +186,15 @@ class ClubhouseWebhookTest(WebhookTestCase):self.assert_json_success(result)def test_story_update_project(self) -> None:- expected_message = "The story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was moved from the **Backend** project to **Devops**."+ expected_message = "The story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was moved from the **Backend** project to **Devops**."self.check_webhook("story_update_change_project", "Add cool feature!", expected_message)def test_story_update_type(self) -> None:- expected_message = "The type of the story [Add cool feature!](https://app.clubhouse.io/zulip/story/11) was changed from **feature** to **bug**."+ expected_message = "The type of the story [Add cool feature!](https://app.shortcut.com/zulip/story/11) was changed from **feature** to **bug**."self.check_webhook("story_update_change_type", "Add cool feature!", expected_message)def test_story_update_add_github_pull_request(self) -> None:- expected_message = "New GitHub PR [#10](https://github.com/eeshangarg/Scheduler/pull/10) opened for story [Testing pull requests with Story](https://app.clubhouse.io/zulip/story/28) (Unscheduled -> Ready for Review)."+ expected_message = "New GitHub PR [#10](https://github.com/eeshangarg/Scheduler/pull/10) opened for story [Testing pull requests with Story](https://app.shortcut.com/zulip/story/28) (Unscheduled -> Ready for Review)."self.check_webhook("story_update_add_github_pull_request","Testing pull requests with Story",@@ -202,14 +202,14 @@ class ClubhouseWebhookTest(WebhookTestCase):)def test_story_update_add_github_pull_request_without_workflow_state(self) -> None:- expected_message = "New GitHub PR [#10](https://github.com/eeshangarg/Scheduler/pull/10) opened for story [Testing pull requests with Story](https://app.clubhouse.io/zulip/story/28)."+ expected_message = "New GitHub PR [#10](https://github.com/eeshangarg/Scheduler/pull/10) opened for story [Testing pull requests with Story](https://app.shortcut.com/zulip/story/28)."self.check_webhook("story_update_add_github_pull_request_without_workflow_state","Testing pull requests with Story",expected_message,)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_update_add_github_multiple_pull_requests(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -226,7 +226,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"Story1",expected_message.format(- name="Story1", url="https://app.clubhouse.io/pig208/story/17"+ name="Story1", url="https://app.shortcut.com/pig208/story/17"),"pull-request_create",),@@ -235,7 +235,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"Story2",expected_message.format(- name="Story2", url="https://app.clubhouse.io/pig208/story/18"+ name="Story2", url="https://app.shortcut.com/pig208/story/18"),"pull-request_create",),@@ -243,14 +243,14 @@ class ClubhouseWebhookTest(WebhookTestCase):self.assertEqual(check_send_webhook_message_mock.call_args_list, expected_list)def test_story_update_add_github_pull_request_with_comment(self) -> None:- expected_message = "Existing GitHub PR [#2](https://github.com/PIG208/test-clubhouse/pull/2) associated with story [asd2](https://app.clubhouse.io/pig208/story/15)."+ expected_message = "Existing GitHub PR [#2](https://github.com/PIG208/test-clubhouse/pull/2) associated with story [asd2](https://app.shortcut.com/pig208/story/15)."self.check_webhook("story_update_add_github_pull_request_with_comment","asd2",expected_message,)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_update_add_github_multiple_pull_requests_with_comment(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -267,7 +267,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"new1",expected_message.format(- name="new1", url="https://app.clubhouse.io/pig208/story/26"+ name="new1", url="https://app.shortcut.com/pig208/story/26"),"pull-request_comment",),@@ -276,7 +276,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"new2",expected_message.format(- name="new2", url="https://app.clubhouse.io/pig208/story/27"+ name="new2", url="https://app.shortcut.com/pig208/story/27"),"pull-request_comment",),@@ -284,12 +284,12 @@ class ClubhouseWebhookTest(WebhookTestCase):self.assertEqual(check_send_webhook_message_mock.call_args_list, expected_list)def test_story_update_add_github_branch(self) -> None:- expected_message = "New GitHub branch [eeshangarg/ch27/testing-pull-requests-with-story](https://github.com/eeshangarg/scheduler/tree/eeshangarg/ch27/testing-pull-requests-with-story) associated with story [Testing pull requests with Story](https://app.clubhouse.io/zulip/story/27) (Unscheduled -> In Development)."+ expected_message = "New GitHub branch [eeshangarg/ch27/testing-pull-requests-with-story](https://github.com/eeshangarg/scheduler/tree/eeshangarg/ch27/testing-pull-requests-with-story) associated with story [Testing pull requests with Story](https://app.shortcut.com/zulip/story/27) (Unscheduled -> In Development)."self.check_webhook("story_update_add_github_branch", "Testing pull requests with Story", expected_message)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_update_batch(self, check_send_webhook_message_mock: MagicMock) -> None:payload = self.get_body("story_update_everything_at_once")self.client_post(self.url, payload, content_type="application/json")@@ -304,7 +304,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"asd4",expected_message.format(- name="asd4", url="https://app.clubhouse.io/pig208/story/17"+ name="asd4", url="https://app.shortcut.com/pig208/story/17"),"story_update_batch",),@@ -313,7 +313,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"new1",expected_message.format(- name="new1", url="https://app.clubhouse.io/pig208/story/26"+ name="new1", url="https://app.shortcut.com/pig208/story/26"),"story_update_batch",),@@ -322,14 +322,14 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"new2",expected_message.format(- name="new2", url="https://app.clubhouse.io/pig208/story/27"+ name="new2", url="https://app.shortcut.com/pig208/story/27"),"story_update_batch",),]self.assertEqual(check_send_webhook_message_mock.call_args_list, expected_list)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_update_batch_skip_removed_labels(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -346,7 +346,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"asd4",expected_message.format(- name="asd4", url="https://app.clubhouse.io/pig208/story/17"+ name="asd4", url="https://app.shortcut.com/pig208/story/17"),"story_update_batch",),@@ -355,7 +355,7 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"new1",expected_message.format(- name="new1", url="https://app.clubhouse.io/pig208/story/26"+ name="new1", url="https://app.shortcut.com/pig208/story/26"),"story_update_batch",),@@ -364,14 +364,14 @@ class ClubhouseWebhookTest(WebhookTestCase):user_profile,"new2",expected_message.format(- name="new2", url="https://app.clubhouse.io/pig208/story/27"+ name="new2", url="https://app.shortcut.com/pig208/story/27"),"story_update_batch",),]self.assertEqual(check_send_webhook_message_mock.call_args_list, expected_list)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_update_batch_each_with_one_change(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -380,23 +380,23 @@ class ClubhouseWebhookTest(WebhookTestCase):expected_messages = [("asd4",- "The type of the story [asd4](https://app.clubhouse.io/pig208/story/17) was changed from **feature** to **bug**.",+ "The type of the story [asd4](https://app.shortcut.com/pig208/story/17) was changed from **feature** to **bug**.",),("new1",- "The story [new1](https://app.clubhouse.io/pig208/story/26) was moved from **epic** to **testeipc**.",+ "The story [new1](https://app.shortcut.com/pig208/story/26) was moved from **epic** to **testeipc**.",),("new2",- "The label **low priority** was added to the story [new2](https://app.clubhouse.io/pig208/story/27).",+ "The label **low priority** was added to the story [new2](https://app.shortcut.com/pig208/story/27).",),("new3",- "State of the story [new3](https://app.clubhouse.io/pig208/story/28) was changed from **In Development** to **Ready for Review**.",+ "State of the story [new3](https://app.shortcut.com/pig208/story/28) was changed from **In Development** to **Ready for Review**.",),("new4",- "The story [new4](https://app.clubhouse.io/pig208/story/29) was moved from the **Product Development** project to **test2**.",+ "The story [new4](https://app.shortcut.com/pig208/story/29) was moved from the **Product Development** project to **test2**.",),]request, user_profile = (@@ -415,7 +415,7 @@ class ClubhouseWebhookTest(WebhookTestCase):]self.assertEqual(check_send_webhook_message_mock.call_args_list, expected_list)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_update_batch_not_supported_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -424,7 +424,7 @@ class ClubhouseWebhookTest(WebhookTestCase):self.assertFalse(check_send_webhook_message_mock.called)self.assert_json_success(result)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_empty_post_request_body_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:@@ -433,7 +433,7 @@ class ClubhouseWebhookTest(WebhookTestCase):self.assertFalse(check_send_webhook_message_mock.called)self.assert_json_success(result)- @patch("zerver.webhooks.clubhouse.view.check_send_webhook_message")+ @patch("zerver.webhooks.shortcut.view.check_send_webhook_message")def test_story_comment_updated_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:payload = self.get_body("story_comment_updated")result = self.client_post(self.url, payload, content_type="application/json")diff --git a/zerver/webhooks/clubhouse/view.py b/zerver/webhooks/shortcut/view.pysimilarity index 99%rename from zerver/webhooks/clubhouse/view.pyrename to zerver/webhooks/shortcut/view.pyindex 2c074467e1f..1b3260ddb80 100644--- a/zerver/webhooks/clubhouse/view.py+++ b/zerver/webhooks/shortcut/view.py@@ -757,13 +757,13 @@ EVENTS_SECONDARY_ACTIONS_FUNCTION_MAPPER: dict[str, Callable[[WildValue], Iterat@webhook_view("Clubhouse", all_event_types=ALL_EVENT_TYPES)@typed_endpoint-def api_clubhouse_webhook(+def api_shortcut_webhook(request: HttpRequest,user_profile: UserProfile,*,payload: JsonBodyPayload[WildValue],) -> HttpResponse:- # Clubhouse has a tendency to send empty POST requests to+ # Shortcut has a tendency to send empty POST requests to# third-party endpoints. It is unclear as to which event type# such requests correspond to. So, it is best to ignore such# requests for now.