Skip to content

API Reference parrot.core.hooks.github_webhook

github-actions[bot] edited this page Nov 10, 2026 · 4 revisions

parrot.core.hooks.github_webhook

View source

GitHub webhook hook — receives and parses GitHub pull_request events.

Class GitHubWebhookHook

Receives GitHub webhook POST requests via an aiohttp route.

Validates HMAC-SHA256 signatures when a secret token is configured. Parses pull_request events (opened, reopened, synchronize) and emits :class:HookEvent instances tagged github.pr_<action>.

Other event types (issues, push, …) and other pull_request actions (closed, edited, labeled, …) are ignored with a 200 response so GitHub does not back off the webhook delivery.

Parameter Type Default Description
config GitHubWebhookConfig
**kwargs {}

Attributes:

Attribute Type Description
url str

Method GitHubWebhookHook.start

start() -> None

Method GitHubWebhookHook.stop

stop() -> None

Method GitHubWebhookHook.setup_routes

setup_routes(app: Any) -> None

Parameter Type Default Description
app Any

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally