Subversion

Version control

Back to listBack

It is easy to send Zulips on SVN commits, by configuring a post-commit hook. To do this:

  1. Create the channel you'd like to use for Subversion notifications.

  2. Download and install our Python bindings and example scripts on the system where the Subversion integration script will be run from.

  3. Install pysvn. On Linux, you can install the python-svn package. On other platforms, you can install a binary or from source by following the instructions on the pysvn website.

  4. Open /usr/local/share/zulip/integrations/svn/zulip_svn_config.py with your favorite editor, and change the following lines to specify the email address and API key for your Subversion bot:

    ZULIP_USER = "svn-bot@zulip.flickboard.natkr.com"
    ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
    ZULIP_SITE = "https://zulip.flickboard.natkr.com"
    
  5. Copy integrations/svn/zulip_svn_config.py and integrations/svn/post-commit from the API bindings directory to the hooks subdirectory of your SVN repository.

  6. The default stream used by this post-commit hook is commits; if you’d prefer a different stream, change it now in zulip_svn_config.py. Make sure that everyone interested in getting these post-commit Zulips is subscribed to that stream!

You're done! Your Subversion notifications may look like this:

SVN commit bot message

Logos are trademarks of their respective owners. None of the integrations on this page are created by, affiliated with, or supported by the companies represented by the logos.