Beta — The GitHub SDK is available in beta. Expect occasional rough edges, and please email founders@MorphLM with any bugs or issues.
Quick Start
Why Use the GitHub SDK?
The GitHub SDK is designed for agent workflows — particularly combining GitHub context with browser automation:- Get PR context (diff, files, metadata) to understand what changed
- Find preview deployments (Vercel, Netlify, Cloudflare) for a PR
- Post test results as comments with videos/screenshots
- Set CI status with check runs
Setup
1. Connect GitHub
Go to morphllm.com/dashboard/integrations/github and install the Morph GitHub App on your account or organization.2. Use the SDK
Core Operations
List Installations
See which GitHub accounts are connected to your Morph account:List Repositories
List repos accessible to a specific installation.installationId is required unless you set a default in the client config.
Get Pull Request Context
Theget method returns the full PR context including the unified diff and changed files:
Find Preview Deployments
Get deployments for a PR’s head SHA to find preview URLs:Post Comments
Post test results, feedback, or status updates to PRs:Manage Check Runs
Create and update GitHub check runs for CI status:Full Example: PR Preview Testing
Combine GitHub SDK with Browser automation for end-to-end PR testing:Using with Multiple Installations
If you have multiple GitHub accounts connected, specify the installation ID per-request:API Reference
Installations
Repositories
Pull Requests
Deployments
Comments
Check Runs
Types
Error Handling
FAQ
How do I connect GitHub?
How do I connect GitHub?
Go to morphllm.com/dashboard/integrations/github and install the Morph GitHub App on your account or organization. You can select specific repositories or grant access to all repos.
Can I use this with organization repos?
Can I use this with organization repos?
Yes! When you install the GitHub App, you can choose to install it on your personal account or any organization you have admin access to. Each installation appears separately in
installations.list().Is my GitHub token stored securely?
Is my GitHub token stored securely?
The SDK never exposes your GitHub installation tokens. All GitHub API calls are proxied through Morph’s servers, where tokens are stored securely. You only use your Morph API key.
What permissions does the GitHub App need?
What permissions does the GitHub App need?
The Morph GitHub App requests:
- Read access to code, metadata, and deployments
- Write access to issues/PRs (for comments) and checks (for CI status)
How do I use this with Browser automation?
How do I use this with Browser automation?
The GitHub SDK is designed to work seamlessly with Browser automation:
- Get PR context with
pullRequests.get() - Pass the
difftobrowser.createTask()for intelligent testing - Post results with
comments.create()andcheckRuns.update()