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/notion(zapier): Rename integration key to notion_via_zapier.

sathwikshetty33729689d9d19c
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py
index 2079de55177..3b0705ed905 100644
--- a/zerver/lib/integrations.py
+++ b/zerver/lib/integrations.py
@@ -79,7 +79,7 @@ FIXTURELESS_INTEGRATIONS_WITH_SCREENSHOTS: list[str] = [
"mastodon",
"mercurial",
"nagios",
- "notion",
+ "notion_via_zapier",
"openshift",
"perforce",
"puppet",
@@ -979,7 +979,16 @@ ZAPIER_INTEGRATIONS: list[Integration] = [
Integration("asana", ["project-management"]),
# Can be used with RSS integration too
Integration("mastodon", ["communication"]),
- Integration("notion", ["productivity", "project-management"]),
+ Integration(
+ "notion_via_zapier",
+ ["productivity", "project-management"],
+ fixtureless_screenshot_config_options=[
+ FixturelessScreenshotConfigOptions(image_dir="notion")
+ ],
+ display_name="Notion",
+ logo="images/integrations/logos/notion.svg",
+ doc="zerver/integrations/notion.md",
+ ),
]
PLUGIN_INTEGRATIONS: list[Integration] = [
diff --git a/zerver/webhooks/fixtureless_integrations.py b/zerver/webhooks/fixtureless_integrations.py
index 196508b1d9d..97c926537da 100644
--- a/zerver/webhooks/fixtureless_integrations.py
+++ b/zerver/webhooks/fixtureless_integrations.py
@@ -139,7 +139,7 @@ CRITICAL - load average: 7.49, 8.20, 4.72
""",
)
-NOTION = ScreenshotContent(
+NOTION_VIA_ZAPIER = ScreenshotContent(
topic=f"{PROJECT_NAME} Release {VERSION_NUMBER}",
content=f"""**{BO_NAME}** [commented]() on:
> project demo scheduled