mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
6ef8816a55
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@chat-adapter/linear
Linear adapter for Chat SDK. Enables bots to respond to @mentions in Linear issue comment threads.
Installation
npm install chat @chat-adapter/linear
Usage
import { Chat } from "chat";
import { createLinearAdapter } from "@chat-adapter/linear";
const bot = new Chat({
userName: "my-bot",
adapters: {
linear: createLinearAdapter({
apiKey: process.env.LINEAR_API_KEY!,
webhookSecret: process.env.LINEAR_WEBHOOK_SECRET!,
userName: "my-bot",
}),
},
});
bot.onNewMention(async (thread, message) => {
await thread.post("Hello from Linear!");
});
Documentation
Full setup instructions, configuration reference, and features at chat-sdk.dev/docs/adapters/linear.
License
MIT