0.0
The project is in a healthy, maintained state
Full GitHub integration for Brainiac — PR reviews, PR comments, PR merges, CI workflow notifications, and issue tracking. Uses Brainiac's hook system for lifecycle integration (PR merge → work item close, deploy → card close).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.25
~> 13.0
~> 1.75

Runtime

>= 0.0.14
 Project Readme

brainiac-github

GitHub webhook plugin for Brainiac — the multi-agent orchestration layer.

What It Does

  • PR Reviews — dispatches agents to address review feedback
  • PR Comments — routes PR conversation to the assigned agent
  • PR Merges — cleans up worktrees, emits hooks for card management plugins
  • Workflow Runs — notifies on CI failures and deploy completions
  • Issues — logs new issues for tracking

Installation

brainiac install github
brainiac restart

Configuration

Config lives at ~/.brainiac/github.json:

{
  "webhook_secret": "your-github-webhook-secret",
  "repos": {}
}

Generate a webhook secret:

ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'

GitHub Webhook Setup

  1. Go to your repo → Settings → Webhooks → Add webhook
  2. Payload URL: https://your-ngrok.ngrok-free.app/github
  3. Content type: application/json
  4. Secret: paste your webhook_secret
  5. Events: Pull requests, Pull request reviews, Issue comments, Issues, Workflow runs

CLI

brainiac github setup     # Create config file from template
brainiac github config    # Show current configuration
brainiac github status    # Check if webhook endpoint is active

Hooks Emitted

Hook When Payload
:pr_merged PR merged to default branch card_number, pr_url, project_key, ...
:pr_review_received Review submitted card_number, reviewer, agent_name, ...
:pr_synchronized PR updated (force push) card_number, worktree, branch, ...
:production_deployed Deploy workflow succeeds project_key, project_config

Development

git clone https://github.com/stowzilla/brainiac-github.git
cd brainiac-github
bundle install
bundle exec rake test
bundle exec rubocop

License

MIT