GitHubChannel (github.py)

deer-flow · ai, github-webhooks, chat-channel, pr-comment-routing, integration

GitHub channel — webhook-driven IM channel for PR/issue comments. Unlike other IM channels (Feishu, Slack, Telegram) which long-poll or use WebSockets, GitHub delivers messages via HTTP push webhooks. This channel therefore has a no-op ``start``/``stop`` — inbound messages arrive

# Source: https://github.com/bytedance/deer-flow | License: MIT | Copyright 2025 Bytedance Ltd. and/or its affiliates
# Provided via justclaw.it.com; keep this notice with the code.
"""GitHub channel — webhook-driven IM channel for PR/issue comments.

Unlike other IM channels (Feishu, Slack, Telegram) which long-poll or use
WebSockets, GitHub delivers messages via HTTP push webhooks. This channel
therefore has a no-op ``start``/``stop`` — inbound messages arrive through
``POST /api/webhooks/github`` and are published to the bus by the webhook
route handler.

**The channel does not auto-post the agent's final response.** Each GitHub
agent (coder, reviewer, …) has the `gh` CLI in its sandbox and is expected to
decide for itself what — if anything — to post on the issue or PR, and to use
``gh

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key