https://github.com/codesandbox/linear-codesandbox-integration
Linear & CodeSandbox issue integration
https://github.com/codesandbox/linear-codesandbox-integration
Last synced: 9 months ago
JSON representation
Linear & CodeSandbox issue integration
- Host: GitHub
- URL: https://github.com/codesandbox/linear-codesandbox-integration
- Owner: codesandbox
- Created: 2022-08-03T11:41:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-21T23:43:51.000Z (over 1 year ago)
- Last Synced: 2025-04-24T04:37:05.056Z (9 months ago)
- Language: TypeScript
- Homepage: https://codesandbox.io/p/github/codesandbox/linear-codesandbox-integration/main?file=%2FREADME.md
- Size: 1.01 MB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linear 🤝 CodeSandbox Integration
This webhook integration allows you to open a development environment on CodeSandbox
directly from a Linear issue.

You can fork this template to set this up for yourself
## How to set this up
1. Fork this repository so you get your own server and make it private in GitHub

2. (Optional) import your repository in CodeSandbox at
[codesandbox.io/p/dashboard](https://codesandbox.io/p/dashboard)
3. Change the configuration ([/src/config.ts](./src/config.ts)) to include your
repositories
1. Note, the `main` branch is protected, so you need to create a new branch
(Branch in top right), make your changes there and then click "Open PR" to
merge the changes back.
4. Generate an API token in Linear
1. In Linear, go to Workspace Settings
2. Go to API
3. Create a personal API key
5. Add the API token to the environment variables
1. Open the command palette (CMD/Ctrl + Shift + P) and search for "Add
environment variables".
2. Add the env var under the name `LINEAR_KEY`
3. Restart the instance, and you should have your webhook server running!
6. Add the Webhook to Linear
1. Go to the main branch of this repo
2. Copy the URL
[http://localhost:3000/linear-webhook](http://localhost:3000/linear-webhook)
<- this URL corresponds to this branch if you open this README in
CodeSandbox. Otherwise you can check the preview URL in the preview devtool
on the right.
3. In Linear, go to Workspace Settings, and add it to the Webhooks under API
7. Now you will have CodeSandbox links in Linear for new issues!