mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Add documentation for changing SITE param in perforce configuration.
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
# Change these values to configure authentication for the plugin
|
# Change these values to configure authentication for the plugin
|
||||||
ZULIP_USER = "p4-bot@example.com"
|
ZULIP_USER = "p4-bot@example.com"
|
||||||
ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
|
ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
|
||||||
|
ZULIP_SITE = "https://zulip.example.com"
|
||||||
|
|
||||||
# commit_notice_destination() lets you customize where commit notices
|
# commit_notice_destination() lets you customize where commit notices
|
||||||
# are sent to with the full power of a Python function.
|
# are sent to with the full power of a Python function.
|
||||||
@@ -57,6 +58,3 @@ def commit_notice_destination(path, changelist):
|
|||||||
## 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
|
||||||
ZULIP_API_PATH = None
|
ZULIP_API_PATH = None
|
||||||
|
|
||||||
# This should not need to change unless you have a custom Zulip subdomain.
|
|
||||||
ZULIP_SITE = "https://api.zulip.com"
|
|
||||||
|
|||||||
@@ -1473,10 +1473,12 @@ key = NAGIOS_BOT_API_KEY
|
|||||||
<code>/usr/local/share/zulip/integrations/perforce</code></li>
|
<code>/usr/local/share/zulip/integrations/perforce</code></li>
|
||||||
|
|
||||||
<li>Open <code>integrations/perforce/zulip_perforce_config.py</code> in
|
<li>Open <code>integrations/perforce/zulip_perforce_config.py</code> in
|
||||||
your favorite editor and change the <code>ZULIP_USER</code> and
|
your favorite editor, change the <code>ZULIP_USER</code> and
|
||||||
<code>ZULIP_API_KEY</code> variables at the top of the file to the
|
<code>ZULIP_API_KEY</code> variables at the top of the file to the
|
||||||
credentials for the bot you'd like to use for this integration.</li>
|
credentials for the bot you'd like to use for this integration.</li>
|
||||||
|
|
||||||
|
<li>You should also change <code>ZULIP_SITE</code> to {{ external_api_path_subdomain }}</li>
|
||||||
|
|
||||||
<li>Edit your
|
<li>Edit your
|
||||||
<a href="http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.scripting.html#d0e14583">trigger table</a>
|
<a href="http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.scripting.html#d0e14583">trigger table</a>
|
||||||
with <code>p4 triggers</code> and add an entry something like the
|
with <code>p4 triggers</code> and add an entry something like the
|
||||||
|
|||||||
Reference in New Issue
Block a user