Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integration-docs: Update Codebase for new doc format.

Niloth P478b09beba44
diff --git a/templates/zerver/integrations/codebase.md b/templates/zerver/integrations/codebase.md
index 2cd864bff00..ce42f2c5086 100644
--- a/templates/zerver/integrations/codebase.md
+++ b/templates/zerver/integrations/codebase.md
@@ -1,39 +1,52 @@
+# Zulip Codebase integration
+
Get Codebase notifications in Zulip!
-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. We recommend naming the streams `codebase` and `tickets`, respectively.
- After creating these streams, make sure to subscribe all interested parties.
+{start_tabs}
+
+1. [Create the channels](/help/create-a-channel) you’d like to use for
+ Codebase notifications. There will be two types of notification
+ messages: issue-related and commit-related.
1. {!create-an-incoming-webhook.md!}
1. {!download-python-bindings.md!}
+1. Install the requirements for the integration script with:
+
+ `pip install /usr/local/share/zulip/integrations/codebase/requirements.txt`
+
1. {!change-zulip-config-file.md!}
- You may also need to update the value of `ZULIP_TICKETS_STREAM_NAME` and
- `ZULIP_COMMITS_STREAM_NAME`.
+ Also add `ZULIP_TICKETS_STREAM_NAME` and `ZULIP_COMMITS_STREAM_NAME`
+ with the names of the channels you created in step 1.
-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:
+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:
```
- CODEBASE_API_USERNAME = "zulip-inc/leo-franchi-15"
+ CODEBASE_API_USERNAME = "zulip-inc/user-name-123"
CODEBASE_API_KEY = 0123456789abcdef0123456789abcdef
```
- 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:
+ !!! tip ""
- ```
- CODEBASE_INITIAL_HISTORY_HOURS = 10
- ```
+ 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, e.g., `CODEBASE_INITIAL_HISTORY_HOURS = 10`.
+
+1. Run the
+ `/usr/local/share/zulip/integrations/codebase/zulip_codebase_mirror`
+ script.
+
+ !!! tip ""
+
+ This script can be restarted, and it will resume from when it was
+ last running.
-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.
+{end_tabs}
{!congrats.md!}