integrations: Change default ZULIP_SITE to https://zulip.example.com.

Modified:
    asana
    basecamp
    codebase
    git
    jira
    svn
    trac
This commit is contained in:
Tomasz Kolek
2016-11-04 20:16:57 +01:00
committed by Tim Abbott
parent 2c252de311
commit 6d36eb00b6
7 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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
}
}

View File

@@ -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"

View File

@@ -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"