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.

hubot-integrations: Utilize a constant DOC_PATH for readability.

Niloth Pdbced00e47e4
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py
index 40c52a64196..a368c9ff23d 100644
--- a/zerver/lib/integrations.py
+++ b/zerver/lib/integrations.py
@@ -292,6 +292,7 @@ def get_fixture_and_image_paths(
class HubotIntegration(Integration):
GIT_URL_TEMPLATE = "https://github.com/hubot-archive/hubot-{}"
SECONDARY_LINE_TEXT = "(Hubot script)"
+ DOC_PATH = "zerver/integrations/hubot_common.md"
def __init__(
self,
@@ -312,7 +313,7 @@ class HubotIntegration(Integration):
logo=logo,
secondary_line_text=self.SECONDARY_LINE_TEXT,
display_name=display_name,
- doc="zerver/integrations/hubot_common.md",
+ doc=self.DOC_PATH,
legacy=legacy,
)