1.4 KiB
It is easy to send Zulips on SVN commits, by configuring a post-commit hook. To do this:
First, create the stream you’d like to use for SVN commit
notifications, and subscribe all interested parties to this
stream. The integration will use the default stream commits
if no
stream is supplied in the hook; you still need to create the stream
even if you are using this default.
Then:
-
{! download-python-bindings.md !}
-
Install
pysvn
. On Linux, you can install thepython-svn
package. On other platforms, you can install a binary or from source following the instructions on the pysvn website. -
Copy
integrations/svn/zulip_svn_config.py
andintegrations/svn/post-commit
from the API bindings directory to thehooks
subdirectory of your SVN repository. -
Next, open
integrations/git/zulip_svn_config.py
in your favorite editor, and change the following lines to configure your SVN integration:ZULIP_USER = "svn-bot@example.com" ZULIP_API_KEY = "0123456789abcdef0123456789abcdef" {% if api_site_required %}ZULIP_SITE = "{{ external_api_uri_subdomain }}"{% endif %}
-
The default stream used by this post-commit hook is
commits
; if you’d prefer a different stream, change it now inzulip_svn_config.py
. Make sure that everyone interested in getting these post-commit Zulips is subscribed to that stream!
{! congrats.md !}