mirror of https://github.com/zulip/zulip.git
42 lines
991 B
Markdown
42 lines
991 B
Markdown
# Zulip Git integration
|
|
|
|
Get Zulip notifications for your Git repositories!
|
|
|
|
{start_tabs}
|
|
|
|
1. {!create-an-incoming-webhook.md!}
|
|
|
|
1. {!download-python-bindings.md!}
|
|
|
|
1. {!create-channel.md!}
|
|
|
|
1. {!change-zulip-config-file.md!}
|
|
|
|
```
|
|
STREAM_NAME = "<Name of your channel>"
|
|
```
|
|
|
|
!!! tip ""
|
|
|
|
Customize notification branches by editing the
|
|
`commit_notice_destination` function. By default,
|
|
pushes to the `main`, `master`, and `test-post-receive` branches will
|
|
result in a notification.
|
|
|
|
1. Symlink `/usr/local/share/zulip/integrations/git/zulip_git_config.py`
|
|
to the `.git/hooks` directory of your Git repository.
|
|
|
|
1. Symlink `/usr/local/share/zulip/integrations/git/post-receive`
|
|
to the `.git/hooks` directory of your Git repository.
|
|
|
|
!!! tip ""
|
|
|
|
Use the `test-post-receive` branch to safely test the plugin without
|
|
modifying your main branch.
|
|
|
|
{end_tabs}
|
|
|
|
{!congrats.md!}
|
|
|
|
![Git bot message](/static/images/integrations/git/001.png)
|