VS Code extension that creates and opens GIT branches from Linear issues and vice versa.
Once installed, just go to the command menu with:
Cmd + Shift + P
And type "Linear Git Tools". You'll see commands like:
- "Linear Git Tools: Create GIT branch"
- "Linear Git Tools: Create Linear issue"
- "Linear Git Tools: Open Linear issue"
- "Linear Git Tools: Update Linear issue field"
This extension uses our VS Code Linear API authentication provider that is exposed by the linear-connect extension. Feel free to use that in your own extensions!
- Create GIT branches from Linear issues
- Create Linear issues from VS Code
- Open Linear issues from VS Code
- Update Linear issue fields
You can configure the extension with the following settings:
linear-git-tools.openInDesktopApp
: Open the issue in the Linear desktop app instead of the browser. (default:false
)linear-git-tools.autoCheckoutBranchAfterIssueCreation
: Automatically checkout the new branch after creation of the issue. Options:ask
,yes
,no
. (default:ask
)
After cloning the repo, use yarn
to install all the package dependencies.
In VS Code you can change the code and run the extension in a separate app window to test with F5 (Run > Start Debugging).
To publish a new version of the extension, first install the vsce package, which is used to build VS Code extension packages.
npm i -g vsce
Then make sure to:
- Update the version in
package.json
according to semver - Add appropriate changes to
CHANGELOG.md
Build the new extension package.
vsce package
This produces a new file linear-git-tools-1.1.0.vsix
, if your version was set to 1.1.0 in package.json
.
You can use this file to release a new version of the extension on the VS Code marketplace.