sourcegraph/dev/update-embeddings-list
Kalan c0ccde2ccf
docs: embeddings list automation (#52879)
This PR will merge and update the list of embedded repos we have on
sourcegraph.com. It uses the sourcegraph graphQL to pull a list of all
embedded repos, filters & sorts the list, and then updates the markdown
`embedded-repos.md`.


The update workflow will run everyday @ `0:00 UTC` and the automatic
merge follows @ `0:05 UTC`.


## Test plan
`npm test`

run locally:
1. get access from
[here](https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=za6swt25wax766z6pe7wpczxxe&h=team-sourcegraph.1password.com)
2. set access token `set SOURCEGRAPH_DOCS_ACCESS_TOKEN=<access_token>`
or hard code
`const access_token = <access_token>`
3. run `ts-node src/index.ts`

output should be embedded-repos.md
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

---------

Co-authored-by: Beatrix <68532117+abeatrix@users.noreply.github.com>
2023-06-05 15:30:34 -07:00
..
src docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00
.gitignore docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00
babel.config.js docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00
package.json docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00
tsconfig.json docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00