GitHub Development Workflow Automation
4 minute read
Developers can interact with AI teammates directly from GitHub by tagging @edge-delta in pull request comments or by letting webhook events trigger automated analysis. This use case covers three patterns: on-demand PR reviews, release milestone readiness checks, and GitHub Actions failure debugging.
Data flow
flowchart LR
A[GitHub Event] -->|Webhook| B[AI Team Channel]
B --> C[OnCall AI]
C --> D[Code Analyzer]
C --> E[SRE Teammate]
D -->|Reads & Posts Reviews| F[GitHub Connector]
E -->|Queries| G[Edge Delta MCP]
GitHub events such as PR comments, workflow failures, and milestone updates arrive via webhook into the configured channel. OnCall AI creates an investigation thread and delegates to Code Analyzer for code-related tasks or SRE for infrastructure correlation. The GitHub connector acts bidirectionally: teammates read pull request diffs, changed files, and workflow run logs, then post reviews and comments back to GitHub.
Environment setup
| Component | Purpose |
|---|---|
| GitHub Connector | Receive PR and workflow events via webhook; read diffs, files, and workflow runs; post reviews and comments back to GitHub |
| Edge Delta MCP Connector | Query infrastructure metrics and logs when failures involve environmental factors (optional) |
| AI Team Channel | Receive GitHub events and route to OnCall AI |
Configure the GitHub connector with access to your target repositories. The connector automatically receives events from accessible repositories and routes them through an AI Event destination. Unlike use cases where GitHub serves only as a data source for change correlation, this workflow uses GitHub as both the input and the output: teammates read context from GitHub and write results back as PR reviews and comments. Add the Edge Delta MCP connector if teammates need to correlate GitHub Actions failures with infrastructure telemetry.
Investigation workflows
The following examples show how teammates might handle GitHub development workflows. The exact behavior depends on your connector configuration, teammate instructions, and the event context.
Pull request review
- A developer tags
@edge-deltain a PR comment requesting a security and reliability review - OnCall AI receives the event via the GitHub connector webhook and initiates an investigation thread
- Code Analyzer retrieves the PR diff and changed files, examining each change for security vulnerabilities, reliability risks, and code quality problems
- Code Analyzer creates a pending PR review with inline comments on specific lines, then submits the review with a summary of findings and recommended actions
- OnCall AI posts a thread summary linking the review to any related issues or patterns found in the codebase
Release readiness assessment
- An engineering lead asks OnCall AI to assess readiness for a release milestone
- OnCall AI receives the request and delegates to Code Analyzer
- Code Analyzer queries all open pull requests associated with the milestone, checking CI status, review approvals, and merge readiness for each
- Code Analyzer identifies blockers: PRs with failing checks, missing reviews, or merge conflicts
- OnCall AI synthesizes a structured readiness report listing ready-to-merge PRs, blocked PRs with specific reasons, and a recommendation on whether to proceed with the release
GitHub Actions failure analysis
- A GitHub Actions workflow fails and the failure event arrives via webhook
- OnCall AI receives the failure event and delegates analysis
- Code Analyzer locates the failing workflow run, identifies failed jobs and steps, and retrieves job logs for analysis. Code Analyzer classifies the failure as a code regression, test flakiness, or environmental issue by correlating logs with historical pass-fail patterns rather than examining the single failure in isolation
- SRE correlates the failure timing with infrastructure metrics if environmental factors are suspected, such as resource exhaustion, network connectivity problems, or configuration drift between runner environments. Environment differences in dependency versions, container images, or runner configurations can cause failures that are unrelated to the code change under test
- OnCall AI posts root cause analysis and recommended fixes, and optionally re-runs the failed jobs if the cause was transient. For flaky tests, OnCall AI flags the test for isolation review rather than simply retrying, since automatic retries mask non-determinism without resolving the underlying instability
Branch hygiene monitoring
- A scheduled check or developer request triggers a branch hygiene scan across the repository
- OnCall AI receives the event and delegates to Code Analyzer
- Code Analyzer queries open pull requests via the GitHub connector, identifying PRs with significant divergence from the base branch, large diffs that increase merge risk, or branches that have not been rebased recently
- Code Analyzer flags PRs where the divergence is likely to cause integration failures, prioritizing by age and number of conflicting files
- OnCall AI posts a summary to the configured channel with specific recommendations: rebase against mainline, split into smaller PRs, or merge promptly to reduce divergence