Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/admin/config/batch-changes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ createBatchSpecLibraryRecord(name: "example", spec: "version: 2\nname: example")
id
}

updateBatchSpecLibraryRecord(id: "QmF0Y2hTcGVjTGlicmFyeVJlY29yZDo4", name: "example-2", spec: "version: 2\nname: example-2") {
updateBatchSpecLibraryRecord(id: "QmF0Y2hTcGVjTGlicmFyeVJlY29yZDoxMA==", name: "example-2", spec: "version: 2\nname: example-2") {
id
}

deleteBatchSpecLibraryRecord(id: "QmF0Y2hTcGVjTGlicmFyeVJlY29yZDo4") {
deleteBatchSpecLibraryRecord(id: "QmF0Y2hTcGVjTGlicmFyeVJlY29yZDoxMA==") {
alwaysNil
}

Expand Down Expand Up @@ -403,7 +403,7 @@ createBatchSpecLibraryRecord(name: "example", spec: "version: 2\nname: example",
labels
}

updateBatchSpecLibraryRecord(id: "QmF0Y2hTcGVjTGlicmFyeVJlY29yZDo4", name: "example-2", spec: "version: 2\nname: example-2", labels: ["featured"]) {
updateBatchSpecLibraryRecord(id: "QmF0Y2hTcGVjTGlicmFyeVJlY29yZDoxMA==", name: "example-2", spec: "version: 2\nname: example-2", labels: ["featured"]) {
id
labels
}
Expand Down
4 changes: 2 additions & 2 deletions docs/batch-changes/batch-spec-templating.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Put information in environment variables, based on the output of previous step `

```yaml
steps:
- run: echo $LINTER_ERRROS >> linter_errors.txt
- run: echo $LINTER_ERRORS >> linter_errors.txt
container: alpine:3
env:
LINTER_ERRORS: ${{ previous_step.stdout }}
Expand Down Expand Up @@ -240,7 +240,7 @@ changesetTemplate:
# Since templating fields use Go's `text/template` and `goreleaserConfig` was
# parsed as YAML we can iterate over every field:
body: |
This repository has a `gorelaserConfig`: ${{ outputs.goreleaserConfigExists.exists }}.
This repository has a `goreleaserConfig`: ${{ outputs.goreleaserConfigExists.exists }}.

The `goreleaser.yml` defines the following `before.hooks`:

Expand Down
2 changes: 1 addition & 1 deletion docs/batch-changes/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Make sure that you put your `steps.run` command in `/tmp-script` (or any other l
If executing the `steps` in the batch spec fails with a message that looks similar to this one (i.e., permission error).

```bash
/bin/sh: can't open '/tmp/tmp.IbdkiA': Permission denied
/bin/sh: can't open '/tmp/tmp.X9k2Tq': Permission denied
```

Or if you are in a locked-down environment, it's possible that Docker bind mounts won't work.
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/explanations/env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ src search -get-curl 'repogroup:swarm'
curl \
-H 'Authorization: token <REDACTED>' \
-H 'authorization: Bearer What did the judge say to the dentist? Do you swear to pull the tooth, the whole tooth and nothing but the tooth?' \
-d '{"query":"fragment FileMatchFields on FileMatch {\n\t\t\t\trepository {\n\t\t\t\t\tname\n\t\t\t\t\turl\n\t\t\t\t}\n\t\t\t\tfile {\n\t\t\t\t\tname\n\t\t\t\t\tpath\n\t\t\t\t\turl\n\t\t\t\t\tcontent\n\t\t\t\t\tcommit {\n\t\t\t\t\t\toid\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlineMatches {\n\t\t\t\t\tpreview\n\t\t\t\t\tlineNumber\n\t\t\t\t\toffsetAndLengths\n\t\t\t\t\tlimitHit\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfragment CommitSearchResultFields on CommitSearchResult {\n\t\t\t\tmessagePreview {\n\t\t\t\t\tvalue\n\t\t\t\t\thighlights{\n\t\t\t\t\t\tline\n\t\t\t\t\t\tcharacter\n\t\t\t\t\t\tlength\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdiffPreview {\n\t\t\t\t\tvalue\n\t\t\t\t\thighlights {\n\t\t\t\t\t\tline\n\t\t\t\t\t\tcharacter\n\t\t\t\t\t\tlength\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlabel {\n\t\t\t\t\thtml\n\t\t\t\t}\n\t\t\t\turl\n\t\t\t\tmatches {\n\t\t\t\t\turl\n\t\t\t\t\tbody {\n\t\t\t\t\t\thtml\n\t\t\t\t\t\ttext\n\t\t\t\t\t}\n\t\t\t\t\thighlights {\n\t\t\t\t\t\tcharacter\n\t\t\t\t\t\tline\n\t\t\t\t\t\tlength\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcommit {\n\t\t\t\t\trepository {\n\t\t\t\t\t\tname\n\t\t\t\t\t}\n\t\t\t\t\toid\n\t\t\t\t\turl\n\t\t\t\t\tsubject\n\t\t\t\t\tauthor {\n\t\t\t\t\t\tdate\n\t\t\t\t\t\tperson {\n\t\t\t\t\t\t\tdisplayName\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t fragment RepositoryFields on Repository {\n\t\t\tname\n\t\t\turl\n\t\t\texternalURLs {\n\t\t\t serviceType\n\t\t\t url\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\thtml\n\t\t\t}\n\t\t }\n\n\t\t query ($query: String!) {\n\t\t\tsite {\n\t\t\t\tbuildVersion\n\t\t\t}\n\t\t\tsearch(query: $query) {\n\t\t\t results {\n\t\t\t\tresults{\n\t\t\t\t __typename\n\t\t\t\t ... on FileMatch {\n\t\t\t\t\t...FileMatchFields\n\t\t\t\t }\n\t\t\t\t ... on CommitSearchResult {\n\t\t\t\t\t...CommitSearchResultFields\n\t\t\t\t }\n\t\t\t\t ... on Repository {\n\t\t\t\t\t...RepositoryFields\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tlimitHit\n\t\t\t\tcloning {\n\t\t\t\t name\n\t\t\t\t}\n\t\t\t\tmissing {\n\t\t\t\t name\n\t\t\t\t}\n\t\t\t\timedout {\n\t\t\t\t name\n\t\t\t\t}\n\t\t\t\tmatchCount\n\t\t\t\telapsedMilliseconds\n\t\t\t\t...SearchResultsAlertFields\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t\n\tfragment SearchResultsAlertFields on SearchResults {\n\t\talert {\n\t\t\ttitle\n\t\t\tdescription\n\t\t\tproposedQueries {\n\t\t\t\tdescription\n\t\t\t\tquery\n\t\t\t}\n\t\t}\n\t}\n","variables":{"query":"repogroup:swarm"}}' \
-d '{"query":"fragment FileMatchFields on FileMatch {\n\t\t\t\trepository {\n\t\t\t\t\tname\n\t\t\t\t\turl\n\t\t\t\t}\n\t\t\t\tfile {\n\t\t\t\t\tname\n\t\t\t\t\tpath\n\t\t\t\t\turl\n\t\t\t\t\tcontent\n\t\t\t\t\tcommit {\n\t\t\t\t\t\toid\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlineMatches {\n\t\t\t\t\tpreview\n\t\t\t\t\tlineNumber\n\t\t\t\t\toffsetAndLengths\n\t\t\t\t\tlimitHit\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfragment CommitSearchResultFields on CommitSearchResult {\n\t\t\t\tmessagePreview {\n\t\t\t\t\tvalue\n\t\t\t\t\thighlights{\n\t\t\t\t\t\tline\n\t\t\t\t\t\tcharacter\n\t\t\t\t\t\tlength\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdiffPreview {\n\t\t\t\t\tvalue\n\t\t\t\t\thighlights {\n\t\t\t\t\t\tline\n\t\t\t\t\t\tcharacter\n\t\t\t\t\t\tlength\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlabel {\n\t\t\t\t\thtml\n\t\t\t\t}\n\t\t\t\turl\n\t\t\t\tmatches {\n\t\t\t\t\turl\n\t\t\t\t\tbody {\n\t\t\t\t\t\thtml\n\t\t\t\t\t\ttext\n\t\t\t\t\t}\n\t\t\t\t\thighlights {\n\t\t\t\t\t\tcharacter\n\t\t\t\t\t\tline\n\t\t\t\t\t\tlength\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcommit {\n\t\t\t\t\trepository {\n\t\t\t\t\t\tname\n\t\t\t\t\t}\n\t\t\t\t\toid\n\t\t\t\t\turl\n\t\t\t\t\tsubject\n\t\t\t\t\tauthor {\n\t\t\t\t\t\tdate\n\t\t\t\t\t\tperson {\n\t\t\t\t\t\t\tdisplayName\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t fragment RepositoryFields on Repository {\n\t\t\tname\n\t\t\turl\n\t\t\texternalURLs {\n\t\t\t serviceType\n\t\t\t url\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\thtml\n\t\t\t}\n\t\t }\n\n\t\t query ($query: String!) {\n\t\t\tsite {\n\t\t\t\tbuildVersion\n\t\t\t}\n\t\t\tsearch(query: $query) {\n\t\t\t results {\n\t\t\t\tresults{\n\t\t\t\t __typename\n\t\t\t\t ... on FileMatch {\n\t\t\t\t\t...FileMatchFields\n\t\t\t\t }\n\t\t\t\t ... on CommitSearchResult {\n\t\t\t\t\t...CommitSearchResultFields\n\t\t\t\t }\n\t\t\t\t ... on Repository {\n\t\t\t\t\t...RepositoryFields\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tlimitHit\n\t\t\t\tcloning {\n\t\t\t\t name\n\t\t\t\t}\n\t\t\t\tmissing {\n\t\t\t\t name\n\t\t\t\t}\n\t\t\t\ttimedout {\n\t\t\t\t name\n\t\t\t\t}\n\t\t\t\tmatchCount\n\t\t\t\telapsedMilliseconds\n\t\t\t\t...SearchResultsAlertFields\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t\n\tfragment SearchResultsAlertFields on SearchResults {\n\t\talert {\n\t\t\ttitle\n\t\t\tdescription\n\t\t\tproposedQueries {\n\t\t\t\tdescription\n\t\t\t\tquery\n\t\t\t}\n\t\t}\n\t}\n","variables":{"query":"repogroup:swarm"}}' \
https://cse-k8s.sgdev.org/.api/graphql
```
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ file:package.json /"license":\s(.*),/

See which repositories import a library (group by repository)

```sguqery
```sgquery
from '@sourcegraph/wildcard'
```

Expand Down Expand Up @@ -84,7 +84,7 @@ See all your tracer calls to track the growth of, or minimize spend on, tools li

See which repositories import a library

```sguqery
```sgquery
/from\s'\@sourcegraph\/wildcard/
```

Expand Down
4 changes: 2 additions & 2 deletions docs/code-monitoring/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The HTTP POST request sent to the receiver will have a JSON-encoded body with th
"results": [
{
"repository": "github.com/test/test",
"commit": "7815187511872asbasdfgasd",
"commit": "7815187511872f3a6c9e0b4d2a8f1c5e7b9d3a01",
"diff": "file1.go file2.go\n@ -97,5 +97,5 @ func Test() {\n leading context\n+matched added\n-matched removed\n trailing context\n",
"matchedDiffRanges": [
[66, 73],
Expand All @@ -154,7 +154,7 @@ The HTTP POST request sent to the receiver will have a JSON-encoded body with th
},
{
"repository": "github.com/test/test",
"commit": "7815187511872asbasdfgasd",
"commit": "7815187511872f3a6c9e0b4d2a8f1c5e7b9d3a01",
"message": "summary line\n\nsample\ncommit\nmessage\n",
"matchedMessageRanges": [[15, 19]]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/code-navigation/auto-indexing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ New policies can also be created to apply to the HEAD of the default branch, or

![Global auto-indexing policy configuration edit page](https://storage.googleapis.com/sourcegraph-assets/docs/images/code-intelligence/renamed/global-create-indexing.png)

![lobal auto-indexing policy configuration created confirmation](https://storage.googleapis.com/sourcegraph-assets/docs/images/code-intelligence/renamed/post-create.png)
![Global auto-indexing policy configuration created confirmation](https://storage.googleapis.com/sourcegraph-assets/docs/images/code-intelligence/renamed/post-create.png)

New policies can be created to apply to a set of repositories that are matched by name. For example, you may want to enable indexing for a particular set of repositories (in this example, repositories in the `sourcegraph` organization).

Expand Down
2 changes: 1 addition & 1 deletion docs/code-search/compare-file-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ The file filtering system uses a specialized file metadata query that is faster
3. Use a compressed file list for many files:

```bash
?compressedFileList=H4sIAAAAAAAAA2NgYGBg...
?compressedFileList=eJwrLkrW...
```

This flexible filtering system allows you to create customized views of repository comparisons, making reviewing changes in large projects easier.
2 changes: 1 addition & 1 deletion docs/cody/enterprise/model-config-examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ In the configuration above,
"modelName": "anthropic.claude-3-7-sonnet-20250219-v1:0",
"serverSideConfig": {
"type": "awsBedrockProvisionedThroughput",
"arn": "<ARN>" // e.g., arn:aws:bedrock:us-west-2:537452198621:provisioned-model/57z3lgkt1cx2
"arn": "<ARN>" // e.g., arn:aws:bedrock:us-west-2:537452198621:provisioned-model/2k4z7m9x3q8t
},
"contextWindow": {
"maxInputTokens": 132000,
Expand Down
2 changes: 1 addition & 1 deletion docs/self-hosted/advanced-config-file.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ And similarly under the `volume` section:
Now upon re-running `kubectl-apply-all.sh` Kubernetes should mount your `ConfigMap` into the container as files on disk and you should see them:

```
$ kubectl exec -it sourcegraph-frontend-57dcb4d7db-6bclj -- ls /mnt/
$ kubectl exec -it sourcegraph-frontend-57dcb4d7db-9tk4z -- ls /mnt/
global-settings.json
extsvc.json
site.json
Expand Down
8 changes: 4 additions & 4 deletions docs/self-hosted/deploy/kubernetes/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ type: kubernetes.io/tls
data:
# the data is abbreviated in this example
tls.crt: |
MIIC2DCCAcCgAwIBAgIBATANBgkqh ...
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCg== ...
tls.key: |
MIIEpgIBAAKCAQEA7yn3bRHQ5FHMQ ...
LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo= ...
```

```sh
Expand Down Expand Up @@ -912,9 +912,9 @@ type: kubernetes.io/tls
data:
# the data is abbreviated in this example
tls.crt: |
MIIC2DCCAcCgAwIBAgIBATANBgkqh ...
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCg== ...
tls.key: |
MIIEpgIBAAKCAQEA7yn3bRHQ5FHMQ ...
LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo= ...
```

```sh
Expand Down