@mushi-mushi/plugin-linear
v0.2.6
Published
Reference Mushi Mushi plugin: create and bidirectionally sync Linear issues from Mushi reports.
Maintainers
Readme
@mushi-mushi/plugin-linear
Reference Mushi Mushi plugin: create and bidirectionally sync Linear issues from Mushi reports.
Install
npm i @mushi-mushi/plugin-linearRun as a stand-alone server
LINEAR_API_KEY=lin_...
LINEAR_TEAM_ID=team-uuid
MUSHI_PLUGIN_SECRET=...
MUSHI_API_KEY=... # optional; required only for back-comments
PORT=3000
npx mushi-plugin-linearSubscribed events
report.created— creates a Linear issue and stashes the mapping.report.classified— updates the issue title/description with the classifier output.report.status_changed— moves the issue to the configured workflow state viastateMap(optional).
Caching
The default cache is in-memory. For production, replace it with Redis or your DB to survive restarts:
const plugin = createLinearPlugin(cfg, {
get: (id) => redis.get(`mushi:linear:${id}`),
set: (id, issueId) => redis.set(`mushi:linear:${id}`, issueId),
})License
MIT
