mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
integrations/svn: Use Markdown macros.
This commit is contained in:
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -1,34 +0,0 @@
|
|||||||
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:
|
|
||||||
|
|
||||||
1. {! download-python-bindings.md !}
|
|
||||||
2. Install `pysvn`. On Linux, you can install the `python-svn`
|
|
||||||
package. On other platforms, you can install a binary or from source
|
|
||||||
following the
|
|
||||||
[instructions on the pysvn website](http://pysvn.tigris.org/project_downloads.html).
|
|
||||||
3. 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.
|
|
||||||
4. 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 %}
|
|
||||||
|
|
||||||
5. 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!
|
|
||||||
|
|
||||||
{! congrats.md !}
|
|
||||||
|
|
||||||

|
|
||||||
29
templates/zerver/integrations/svn.md
Normal file
29
templates/zerver/integrations/svn.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
It is easy to send Zulips on SVN commits, by configuring a
|
||||||
|
post-commit hook. To do this:
|
||||||
|
|
||||||
|
{!create-stream.md!}
|
||||||
|
|
||||||
|
Then:
|
||||||
|
|
||||||
|
1. {!download-python-bindings.md!}
|
||||||
|
|
||||||
|
2. 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][1].
|
||||||
|
|
||||||
|
[1]: http://pysvn.tigris.org/project_downloads.html
|
||||||
|
|
||||||
|
3. {!change-zulip-config-file.md!}
|
||||||
|
|
||||||
|
4. 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.
|
||||||
|
|
||||||
|
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!
|
||||||
|
|
||||||
|
{!congrats.md!}
|
||||||
|
|
||||||
|

|
||||||
@@ -295,7 +295,12 @@ INTEGRATIONS = {
|
|||||||
'puppet': Integration('puppet', 'puppet', doc='zerver/integrations/puppet.md'),
|
'puppet': Integration('puppet', 'puppet', doc='zerver/integrations/puppet.md'),
|
||||||
'redmine': Integration('redmine', 'redmine', doc='zerver/integrations/redmine.html'),
|
'redmine': Integration('redmine', 'redmine', doc='zerver/integrations/redmine.html'),
|
||||||
'rss': Integration('rss', 'rss', display_name='RSS', doc='zerver/integrations/rss.html'),
|
'rss': Integration('rss', 'rss', display_name='RSS', doc='zerver/integrations/rss.html'),
|
||||||
'subversion': Integration('subversion', 'subversion', doc='zerver/integrations/subversion.md'),
|
'svn': Integration(
|
||||||
|
'svn', 'svn',
|
||||||
|
display_name='Subversion',
|
||||||
|
doc='zerver/integrations/svn.md',
|
||||||
|
stream_name='commits',
|
||||||
|
),
|
||||||
'trac': Integration('trac', 'trac', doc='zerver/integrations/trac.md'),
|
'trac': Integration('trac', 'trac', doc='zerver/integrations/trac.md'),
|
||||||
'trello-plugin': Integration(
|
'trello-plugin': Integration(
|
||||||
'trello-plugin',
|
'trello-plugin',
|
||||||
|
|||||||
Reference in New Issue
Block a user