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

"""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 issue comment`` / ``gh pr comment`` / ``gh pr create`` during the run.
The agent's final assistant message is logged at INFO for visibility in
``gateway.log`` but is **not** sent to

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

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

Get a free API key