{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github is the gateway's GitHub trigger: an inbound webhook receiver, not a chat channel. GitHub is an event SOURCE — a failing CI run becomes an agent task, and the result is routed to a chat conversation the user configured (ReplyTo, e.g. \"telegram:123456\"). Deliveries are authenticated by HMAC-SHA256 over the raw body, de-duplicated on the X-GitHub-Delivery id, and filtered so memcode's own bot/branches never trigger a loop.\n\n## Types\n\n```go\ntype Trigger struct {\n\t// contains filtered or unexported fields\n}\n```\nTrigger handles GitHub webhook deliveries.\n\n```go\nfunc New(secret, replyTo string) *Trigger\n```\nNew builds a GitHub trigger. secret verifies delivery signatures; replyTo names the chat conversation the agent's result is routed to.\n\n```go\nfunc (t *Trigger) Handler(sink channels.Sink) http.Handler\n```\nHandler returns the webhook HTTP handler. It validates the signature, drops duplicates and events we don't act on, and forwards actionable events as an Inbound routed to the configured reply conversation.\n\n","path":"github.com/memcode-ai/memcode/internal/triggers/github","name":"github","synopsis":"Package github is the gateway's GitHub trigger: an inbound webhook receiver, not a chat channel.","isRedistributable":true}
