feat(trigger-dev): GitHub AI agent demo (Hookdeck + Trigger.dev)#6
feat(trigger-dev): GitHub AI agent demo (Hookdeck + Trigger.dev)#6
Conversation
Three AI-powered tasks triggered by GitHub webhooks via Hookdeck: - handle-pr: fetches PR diff, generates review summary with Claude, posts as PR comment - handle-issue: classifies issues with Claude, auto-applies labels - handle-push: summarizes deployments with Claude, posts to Slack Includes two integration patterns: - Pattern A: single Hookdeck connection, fan-out router task - Pattern B: per-event Hookdeck connections with header-based filter rules Shared utilities: Hookdeck event verification, GitHub API helpers, Anthropic SDK wrapper, Slack incoming webhook helper. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- setup-hookdeck.sh: idempotent creation of all Hookdeck resources (source, destinations, connections, filters, transformation) for both Pattern A and Pattern B using hookdeck CLI upsert - setup-github-webhook.sh: registers GitHub webhook pointing to Hookdeck source URL, checks for existing webhook to avoid duplicates Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- setup.sh walks through all credentials interactively - Auto-generates GITHUB_WEBHOOK_SECRET (random hex) - Auto-detects GITHUB_TOKEN from gh CLI - Auto-detects GITHUB_REPO from current repo - Prompts with help text for manual credentials - Slack webhook URL is optional (task logs to console if skipped) - Supports --check mode to verify .env - Orchestrates deploy + hookdeck setup + github webhook in sequence Also: slack.ts gracefully handles missing SLACK_WEBHOOK_URL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Setup: interactive setup.sh, quoted .env, GITHUB_LABELS from repo, prod-only Trigger keys - Hookdeck: capture source URL from connection output; GitHub webhook -F active (boolean) - trigger-wrapper: verified flag from context when headers absent - Trigger: syncEnvVars + --env-file .env, GITHUB_ACCESS_TOKEN - Tasks: Hookdeck payload types, Anthropic/GitHub env handling - Docs + collaboration build plan Made-with: Cursor
AI Review SummarySummaryThis PR adds a comprehensive GitHub AI agent demo showcasing Hookdeck + Trigger.dev integration. The demo includes interactive setup scripts, webhook handling, AI-powered automation tasks (PR reviews, issue labeling, deployment summaries), and documentation covering two different architectural patterns for webhook routing. Key ObservationsStrengths:
Potential Concerns:
Suggestions for Improvement
The demo effectively showcases both platforms' capabilities and provides a solid foundation for developers to build GitHub automation workflows. Generated by Hookdeck + Trigger.dev |
- Summarize any branch by default; GITHUB_PUSH_SUMMARY_DEFAULT_BRANCH_ONLY=true for main-only - Slack message shows branch; README + .env.example document optional env Made-with: Cursor
AI Review SummarySummaryThis PR adds a comprehensive GitHub AI agent demo showcasing the integration between Hookdeck (webhook routing) and Trigger.dev (task execution). The demo includes three AI-powered GitHub automation tasks: PR code review summaries, issue labeling, and deployment notifications to Slack, with two different architectural patterns for connecting the services. Key ObservationsStrengths:
Areas of Concern:
Suggestions for Improvement
The technical implementation looks solid and the automation is impressive, but consider whether the scope might be too broad for a single demo. Generated by Hookdeck + Trigger.dev |
…okdeck fan-out - Add Mermaid diagrams (vertical), component captions, setup caveat - Frame Pattern A as Trigger fan-out (router) vs Pattern B as Hookdeck fan-out - Update collaboration build plan as needed Made-with: Cursor
AI Review SummarySummaryThis PR introduces a comprehensive GitHub AI agent demo integrating Hookdeck and Trigger.dev. It includes setup automation, two different webhook routing patterns, and three AI-powered GitHub automation tasks (PR review, issue labeling, and deployment summaries to Slack). Key ObservationsStrengths:
Potential Concerns:
Suggestions for Improvement
The demo effectively showcases both platforms' capabilities and provides genuine developer value. The thorough documentation is impressive, though the complexity might benefit from a more gradual onboarding experience. Generated by Hookdeck + Trigger.dev |
Summary
Polishes the
trigger-dev/github-ai-agentdemo: interactive setup, Hookdeck + GitHub webhook fixes, Trigger.dev Production deploy + env sync, transformation + task hardening, docs.Notes
pull_requestopened/synchronizeevents — the AI review task runs the same unless we filterpull_request.draftin code.Test plan
npm run setup/npm run deployfrom demo folderMade with Cursor