2018-04-21 21:04:08 +02:00
|
|
|
|
Get Codebase notifications in Zulip!
|
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
1. First, create the streams you’d like to use for Codebase notifications. There
|
2018-04-21 21:04:08 +02:00
|
|
|
|
will be two types of messages: commit-related updates and issue-related
|
|
|
|
|
updates. We recommend naming the streams `codebase` and `tickets`, respectively.
|
|
|
|
|
After creating these streams, make sure to subscribe all interested parties.
|
|
|
|
|
|
2022-09-09 00:06:37 +02:00
|
|
|
|
1. {!create-an-incoming-webhook.md!}
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2018-04-21 21:04:08 +02:00
|
|
|
|
1. {!download-python-bindings.md!}
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2022-06-26 02:38:55 +02:00
|
|
|
|
1. {!change-zulip-config-file.md!}
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2018-04-21 21:04:08 +02:00
|
|
|
|
You may also need to update the value of `ZULIP_TICKETS_STREAM_NAME` and
|
|
|
|
|
`ZULIP_COMMITS_STREAM_NAME`.
|
2017-06-22 05:37:05 +02:00
|
|
|
|
|
2018-04-21 21:04:08 +02:00
|
|
|
|
1. Go to your Codebase settings, and click on **My Profile**. Under
|
|
|
|
|
**API Credentials**, you will find your API key and username.
|
|
|
|
|
Edit the following lines in `zulip_codebase_config.py` to add your Codebase
|
|
|
|
|
credentials:
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
```
|
|
|
|
|
CODEBASE_API_USERNAME = "zulip-inc/leo-franchi-15"
|
|
|
|
|
CODEBASE_API_KEY = 0123456789abcdef0123456789abcdef
|
|
|
|
|
```
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2018-04-21 21:04:08 +02:00
|
|
|
|
Before your first run of the script, you may also want to configure the
|
|
|
|
|
integration to mirror some number of hours of prior Codebase activity:
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
```
|
|
|
|
|
CODEBASE_INITIAL_HISTORY_HOURS = 10
|
|
|
|
|
```
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2018-04-21 21:04:08 +02:00
|
|
|
|
1. Run the `/usr/local/share/zulip/integrations/codebase/zulip_codebase_mirror`
|
|
|
|
|
script. If needed, this script may be restarted, and it will automatically
|
|
|
|
|
resume from when it was last running.
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2017-06-22 05:37:05 +02:00
|
|
|
|
{!congrats.md!}
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2020-08-05 11:50:17 +02:00
|
|
|
|
![Codebase bot message](/static/images/integrations/codebase/001.png)
|