Files
vercel__chat/packages/adapter-github
github-actions[bot] 7fb3248a31 Version Packages (#89)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-23 19:12:59 -08:00
..
2026-02-23 19:12:59 -08:00
2026-02-23 19:12:59 -08:00
2026-02-20 13:25:09 -08:00
2026-01-31 19:02:43 -05:00
2026-02-20 13:25:09 -08:00

@chat-adapter/github

npm version npm downloads

GitHub adapter for Chat SDK. Enables bots to respond to @mentions in GitHub PR and issue comment threads.

Installation

npm install chat @chat-adapter/github

Usage

import { Chat } from "chat";
import { createGitHubAdapter } from "@chat-adapter/github";

const bot = new Chat({
  userName: "my-bot",
  adapters: {
    github: createGitHubAdapter({
      token: process.env.GITHUB_TOKEN!,
      webhookSecret: process.env.GITHUB_WEBHOOK_SECRET!,
      userName: "my-bot",
    }),
  },
});

bot.onNewMention(async (thread, message) => {
  await thread.post("Hello from GitHub!");
});

Documentation

Full setup instructions, configuration reference, and features at chat-sdk.dev/docs/adapters/github.

License

MIT