Spaces:
Running
Running
Add instructions for private repositories
Browse files
README.md
CHANGED
|
@@ -135,6 +135,15 @@ If you are planning on indexing GitHub issues in addition to the codebase, you w
|
|
| 135 |
|
| 136 |
## Additional features
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
<details>
|
| 139 |
<summary><strong>:hammer_and_wrench: Control which files get indexed</strong></summary>
|
| 140 |
|
|
|
|
| 135 |
|
| 136 |
## Additional features
|
| 137 |
|
| 138 |
+
<details>
|
| 139 |
+
<summary><strong>:lock: Working with private repositories</strong></summary>
|
| 140 |
+
To index and chat with a private repository, simply set the GITHUB_TOKEN environment variable. To obtain this token: go to github.com > click on your profile icon > Settings > Developer settings > Personal access tokens. You can either make a fine-grained token for the desired repository, or a classic token.
|
| 141 |
+
|
| 142 |
+
```
|
| 143 |
+
export GITHUB_TOKEN=...
|
| 144 |
+
```
|
| 145 |
+
</details>
|
| 146 |
+
|
| 147 |
<details>
|
| 148 |
<summary><strong>:hammer_and_wrench: Control which files get indexed</strong></summary>
|
| 149 |
|