2017-11-25 00:06:04 +01:00
|
|
|
|
1. First, create the streams you’d like to use for Codebase notifications. There
|
|
|
|
|
will be two types of messages: commit-related updates and issue-related updates.
|
|
|
|
|
After creating these streams (we suggest naming them `codebase commits` and
|
|
|
|
|
`codebase issues`), make sure to subscribe all interested parties.
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
2. {!download-python-bindings.md!}
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
3. You will need your Codebase API Username. You can find it in the settings page
|
|
|
|
|
of your account, under **API Credentials**.
|
2017-06-14 01:12:01 +02:00
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
4. {!change-zulip-config-file-indented.md!}
|
2017-06-22 05:37:05 +02:00
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
5. Also, edit the following Codebase credentials in `zulip_codebase_config.py`:
|
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
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
6. Before your first run of the script, you may optionally choose to configure it
|
|
|
|
|
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
|
|
|
|
|
2017-11-25 00:06:04 +01:00
|
|
|
|
7. Now, simply run the `api/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-11-25 00:06:04 +01:00
|
|
|
|
8. Whenever you create a new project, commit, issue, deployment, or more, you’ll
|
|
|
|
|
get notifications in your selected streams with the associated information.
|
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
|
|
|
|
|
|
|
|
|
![](/static/images/integrations/codebase/001.png)
|