github

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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