Skip to content

codesandbox/linear-codesandbox-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear 🤝 CodeSandbox Integration

This webhook integration allows you to open a development environment on CodeSandbox directly from a Linear issue.

linear-codesandbox

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

fork

  1. (Optional) import your repository in CodeSandbox at codesandbox.io/p/dashboard
  2. Change the configuration (/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.
  3. Generate an API token in Linear
    1. In Linear, go to Workspace Settings
    2. Go to API
    3. Create a personal API key
  4. 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!
  5. Add the Webhook to Linear
    1. Go to the main branch of this repo
    2. Copy the URL 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
  6. Now you will have CodeSandbox links in Linear for new issues!