mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	integrations/codebase: Use change-zulip-config-file macro.
This commit is contained in:
		@@ -6,18 +6,15 @@ After creating these streams (we suggest naming them `codebase commits` and
 | 
			
		||||
{!download-python-bindings.md!}
 | 
			
		||||
 | 
			
		||||
You will need your Codebase API Username. You can find it in the settings page
 | 
			
		||||
of your account, under `API Credentials`.
 | 
			
		||||
of your account, under **API Credentials**.
 | 
			
		||||
 | 
			
		||||
Edit the Codebase and Zulip credentials in `integrations/codebase/zulip_codebase_config.py`
 | 
			
		||||
using your favorite editor:
 | 
			
		||||
{!change-zulip-config-file.md!}
 | 
			
		||||
 | 
			
		||||
Also, edit the following Codebase credentials in `zulip_codebase_config.py`:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
CODEBASE_API_USERNAME = "zulip-inc/leo-franchi-15"
 | 
			
		||||
CODEBASE_API_KEY = 0123456789abcdef0123456789abcdef
 | 
			
		||||
 | 
			
		||||
ZULIP_USER = "codebase-bot@example.com"
 | 
			
		||||
ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
 | 
			
		||||
{% if api_site_required %}ZULIP_SITE = "{{ external_api_uri_subdomain }}"{% endif %}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Before your first run of the script, you may optionally choose to configure it
 | 
			
		||||
@@ -27,7 +24,6 @@ to mirror some number of hours of prior Codebase activity:
 | 
			
		||||
CODEBASE_INITIAL_HISTORY_HOURS = 10
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
@@ -35,7 +31,6 @@ when it was last running.
 | 
			
		||||
Whenever you create a new project, commit, issue, deployment, or more, you’ll
 | 
			
		||||
get notifications in your selected streams with the associated information.
 | 
			
		||||
 | 
			
		||||
{! congrats.md !}
 | 
			
		||||
 | 
			
		||||
{!congrats.md!}
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user