You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Sourcegraph Docs
2
2
3
-
<!-- Working branch for JAN 2025 Release -->
3
+
<!-- Working branch for FEB 2025 Release -->
4
4
5
5
Welcome to the Sourcegraph documentation! We're excited to have you contribute to our docs. We've recently rearchitectured our docs tech stack — powered by Next.js, TailwindCSS and deployed on Vercel. This guide will walk you through the process of contributing to our documentation using the new tech stack.
Copy file name to clipboardExpand all lines: docs/admin/code_hosts/gerrit.mdx
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@ A Gerrit instance can be connected to Sourcegraph as follows:
21
21
```json
22
22
{
23
23
"url": "https://gerrit.example.com/", // Be sure to add a trailing slash
24
-
"username": "<admin username>",
25
-
"password": "<admin password>",
24
+
"username": "<username>",
25
+
"password": "<password>",
26
26
"projects": [ // If not set, all projects on the Gerrit instance will be mirrored
27
27
"docs",
28
28
"kubernetes/kubernetes"
@@ -33,15 +33,34 @@ A Gerrit instance can be connected to Sourcegraph as follows:
33
33
"authorization": {} // Marks all repositories as private. Users will be required to present valid Gerrit HTTP credentials in order to view repositories
34
34
}
35
35
```
36
-
4. The provided `username` and `password` must be the HTTP credentials of an admin account on Gerrit. See [the Gerrit HTTP documentation](https://gerrit-documentation.storage.googleapis.com/Documentation/2.14.2/user-upload.html#http) for details on how to generate HTTP credentials.
37
-
<Callouttype="note">The Gerrit instance has to have HTTPS clones enabled (the default). [`download.scheme=http`](https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#download). Sourcegraph cannot clone Gerrit repos via SSH.</Callout>
36
+
4. The provided `username` and `password` must be the HTTP credentials of an account on Gerrit that has access to all the repositories that need to be cloned. See [the Gerrit HTTP documentation](https://gerrit-documentation.storage.googleapis.com/Documentation/2.14.2/user-upload.html#http) for details on how to generate HTTP credentials.
38
37
5. Select **Add Repositories** to create the connection. Sourcegraph will start mirroring the specified projects.
39
38
40
39
If you added the `"authorization": {}` option to the configuration, and this is the first Gerrit code host connection you have created for this Gerrit instance, you might see a warning like this:
41
40

42
41
43
42
Simply follow the steps in the next section to configure a Gerrit authentication provider.
44
43
44
+
### Clone using SSH
45
+
46
+
To clone using SSH, provide `"gitSSHCredential"` in the configuration:
47
+
48
+
```json
49
+
{
50
+
"url": "https://gerrit.example.com/",
51
+
"username": "<username>",
52
+
"password": "<password>",
53
+
"projects": [
54
+
"docs",
55
+
"kubernetes/kubernetes"
56
+
],
57
+
"gitSSHCredential": {
58
+
"privateKey": "..."// base64 encoded private key that will be used for cloning
59
+
},
60
+
"authorization": {}
61
+
}
62
+
```
63
+
45
64
## Add Gerrit as an authentication provider
46
65
47
66
If the `"authorization": {}` option has been set on a Gerrit code host connection, a Gerrit authentication provider will be required so that authroized users are able to search for and browse the code mirrored by that code host connection.
Copy file name to clipboardExpand all lines: docs/admin/code_hosts/github.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# GitHub
2
2
3
+
<TierCallout>
4
+
Supported on all Sourcegraph [pricing](https://sourcegraph.com/pricing) plans.
5
+
</TierCallout>
6
+
3
7
Site admins can sync Git repositories hosted on [GitHub.com](https://github.com) and [GitHub Enterprise](https://enterprise.github.com) with Sourcegraph so that users can search and navigate the repositories.
Copy file name to clipboardExpand all lines: docs/admin/code_hosts/gitlab.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# GitLab
2
2
3
+
<TierCallout>
4
+
Supported on Sourcegraph [Free](/pricing/free) and [Enterprise](/pricing/enterprise) plans.
5
+
</TierCallout>
6
+
3
7
Site admins can sync Git repositories hosted on [GitLab](https://gitlab.com) (GitLab.com and GitLab CE/EE) with Sourcegraph so that users can search and navigate the repositories.
Copy file name to clipboardExpand all lines: docs/admin/code_hosts/index.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Code host connections
2
2
3
+
<Callouttype="info">Sourcegraph Enterprise Starter supports only GitHub as a code host connection. Enterprise plan can connect to all supported code hosts listed on this page.</Callout>
4
+
3
5
Sourcegraph can sync repositories from code hosts and other similar services. We designate code hosts between Tier 1 and Tier 2 based on Sourcegraph's capabilities when used with those code hosts.
0 commit comments