github

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

type Trigger struct {
	// contains filtered or unexported fields
}

Trigger handles GitHub webhook deliveries.

func New

func New(secret, replyTo string) *Trigger

New builds a GitHub trigger. secret verifies delivery signatures; replyTo names the chat conversation the agent's result is routed to.

func (*Trigger) Handler

func (t *Trigger) Handler(sink channels.Sink) http.Handler

Handler 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL