integrations: Change default ZULIP_SITE to https://zulip.example.com.
Modified: asana basecamp codebase git jira svn trac
This commit is contained in:
parent
3e877e069f
commit
f380127f1e
|
@ -49,7 +49,7 @@ RESUME_FILE = "/var/tmp/zulip_asana.state"
|
||||||
ASANA_INITIAL_HISTORY_HOURS = 1
|
ASANA_INITIAL_HISTORY_HOURS = 1
|
||||||
|
|
||||||
# Set this to your Zulip API server URI
|
# 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
|
# If properly installed, the Zulip API should be in your import
|
||||||
# path, but if not, set a custom path below
|
# path, but if not, set a custom path below
|
||||||
|
|
|
@ -41,7 +41,7 @@ ZULIP_STREAM_NAME = "basecamp"
|
||||||
ZULIP_API_PATH = None
|
ZULIP_API_PATH = None
|
||||||
|
|
||||||
# Set this to your Zulip API server URI
|
# 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,
|
# If you wish to log to a file rather than stdout/stderr,
|
||||||
# please fill this out your desired path
|
# please fill this out your desired path
|
||||||
|
|
|
@ -50,7 +50,7 @@ ZULIP_TICKETS_STREAM_NAME = "tickets"
|
||||||
ZULIP_API_PATH = None
|
ZULIP_API_PATH = None
|
||||||
|
|
||||||
# Set this to your Zulip API server URI
|
# 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,
|
# If you wish to log to a file rather than stdout/stderr,
|
||||||
# please fill this out your desired path
|
# please fill this out your desired path
|
||||||
|
|
|
@ -61,4 +61,4 @@ def format_commit_message(author, subject, commit_id):
|
||||||
ZULIP_API_PATH = None
|
ZULIP_API_PATH = None
|
||||||
|
|
||||||
# Set this to your Zulip server's API URI
|
# Set this to your Zulip server's API URI
|
||||||
ZULIP_SITE = "https://api.zulip.com"
|
ZULIP_SITE = "https://zulip.example.com"
|
||||||
|
|
|
@ -31,8 +31,8 @@ class ZulipListener extends AbstractIssueEventListener {
|
||||||
// The base JIRA url for browsing
|
// The base JIRA url for browsing
|
||||||
String issueBaseUrl = "https://jira.COMPANY.com/browse/"
|
String issueBaseUrl = "https://jira.COMPANY.com/browse/"
|
||||||
|
|
||||||
// Your zulip domain, only change if you have a custom one
|
// Your zulip domain
|
||||||
String base_url = "https://api.zulip.com"
|
String base_url = "https://zulip.example.com/"
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
void workflowEvent(IssueEvent event) {
|
void workflowEvent(IssueEvent event) {
|
||||||
|
@ -144,6 +144,6 @@ class ZulipListener extends AbstractIssueEventListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
String zulipUrl(method) {
|
String zulipUrl(method) {
|
||||||
return base_url + "/v1/" + method
|
return base_url.replaceAll("/+$", "") + "/api/v1/" + method
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,4 +53,4 @@ def commit_notice_destination(path, commit):
|
||||||
ZULIP_API_PATH = None
|
ZULIP_API_PATH = None
|
||||||
|
|
||||||
# Set this to your Zulip server's API URI
|
# Set this to your Zulip server's API URI
|
||||||
ZULIP_SITE = "https://api.zulip.com"
|
ZULIP_SITE = "https://zulip.example.com"
|
||||||
|
|
|
@ -48,4 +48,4 @@ TRAC_NOTIFY_FIELDS = ["description", "summary", "resolution", "comment", "owner"
|
||||||
ZULIP_API_PATH = None
|
ZULIP_API_PATH = None
|
||||||
|
|
||||||
# Set this to your Zulip API server URI
|
# Set this to your Zulip API server URI
|
||||||
ZULIP_SITE = "https://api.zulip.com"
|
ZULIP_SITE = "https://zulip.example.com"
|
||||||
|
|
Loading…
Reference in a new issue