From f380127f1e30b4f8f416fce059a39573af670ad6 Mon Sep 17 00:00:00 2001 From: Tomasz Kolek Date: Fri, 4 Nov 2016 20:16:57 +0100 Subject: [PATCH] integrations: Change default ZULIP_SITE to https://zulip.example.com. Modified: asana basecamp codebase git jira svn trac --- integrations/asana/zulip_asana_config.py | 2 +- integrations/basecamp/zulip_basecamp_config.py | 2 +- integrations/codebase/zulip_codebase_config.py | 2 +- integrations/git/zulip_git_config.py | 2 +- integrations/jira/org/humbug/jira/ZulipListener.groovy | 6 +++--- integrations/svn/zulip_svn_config.py | 2 +- integrations/trac/zulip_trac_config.py | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/integrations/asana/zulip_asana_config.py b/integrations/asana/zulip_asana_config.py index e19a6bb..bfe9fd7 100644 --- a/integrations/asana/zulip_asana_config.py +++ b/integrations/asana/zulip_asana_config.py @@ -49,7 +49,7 @@ RESUME_FILE = "/var/tmp/zulip_asana.state" ASANA_INITIAL_HISTORY_HOURS = 1 # Set this to your Zulip API server URI -ZULIP_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://zulip.example.com" # If properly installed, the Zulip API should be in your import # path, but if not, set a custom path below diff --git a/integrations/basecamp/zulip_basecamp_config.py b/integrations/basecamp/zulip_basecamp_config.py index 085d978..76ebda9 100644 --- a/integrations/basecamp/zulip_basecamp_config.py +++ b/integrations/basecamp/zulip_basecamp_config.py @@ -41,7 +41,7 @@ ZULIP_STREAM_NAME = "basecamp" ZULIP_API_PATH = None # Set this to your Zulip API server URI -ZULIP_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://zulip.example.com" # If you wish to log to a file rather than stdout/stderr, # please fill this out your desired path diff --git a/integrations/codebase/zulip_codebase_config.py b/integrations/codebase/zulip_codebase_config.py index a0e655b..a2b94b5 100644 --- a/integrations/codebase/zulip_codebase_config.py +++ b/integrations/codebase/zulip_codebase_config.py @@ -50,7 +50,7 @@ ZULIP_TICKETS_STREAM_NAME = "tickets" ZULIP_API_PATH = None # Set this to your Zulip API server URI -ZULIP_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://zulip.example.com" # If you wish to log to a file rather than stdout/stderr, # please fill this out your desired path diff --git a/integrations/git/zulip_git_config.py b/integrations/git/zulip_git_config.py index 0c36b98..e1c0ca8 100644 --- a/integrations/git/zulip_git_config.py +++ b/integrations/git/zulip_git_config.py @@ -61,4 +61,4 @@ def format_commit_message(author, subject, commit_id): ZULIP_API_PATH = None # Set this to your Zulip server's API URI -ZULIP_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://zulip.example.com" diff --git a/integrations/jira/org/humbug/jira/ZulipListener.groovy b/integrations/jira/org/humbug/jira/ZulipListener.groovy index 9aa999b..2ba455f 100644 --- a/integrations/jira/org/humbug/jira/ZulipListener.groovy +++ b/integrations/jira/org/humbug/jira/ZulipListener.groovy @@ -31,8 +31,8 @@ class ZulipListener extends AbstractIssueEventListener { // The base JIRA url for browsing String issueBaseUrl = "https://jira.COMPANY.com/browse/" - // Your zulip domain, only change if you have a custom one - String base_url = "https://api.zulip.com" + // Your zulip domain + String base_url = "https://zulip.example.com/" @Override void workflowEvent(IssueEvent event) { @@ -144,6 +144,6 @@ class ZulipListener extends AbstractIssueEventListener { } String zulipUrl(method) { - return base_url + "/v1/" + method + return base_url.replaceAll("/+$", "") + "/api/v1/" + method } } diff --git a/integrations/svn/zulip_svn_config.py b/integrations/svn/zulip_svn_config.py index 24173a1..33cfc29 100644 --- a/integrations/svn/zulip_svn_config.py +++ b/integrations/svn/zulip_svn_config.py @@ -53,4 +53,4 @@ def commit_notice_destination(path, commit): ZULIP_API_PATH = None # Set this to your Zulip server's API URI -ZULIP_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://zulip.example.com" diff --git a/integrations/trac/zulip_trac_config.py b/integrations/trac/zulip_trac_config.py index aa6b2b1..7e94be0 100644 --- a/integrations/trac/zulip_trac_config.py +++ b/integrations/trac/zulip_trac_config.py @@ -48,4 +48,4 @@ TRAC_NOTIFY_FIELDS = ["description", "summary", "resolution", "comment", "owner" ZULIP_API_PATH = None # Set this to your Zulip API server URI -ZULIP_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://zulip.example.com"