GitHub Integration
Connect your GitHub repositories to DebuggAI for automated test runs on pull requests, status checks, and intelligent code change detection.
Why Connect GitHub?
DebuggAI's GitHub App enables:
- Automated PR Testing: Tests run automatically when pull requests are opened or updated
- Status Checks: Pass/fail results appear directly on your PRs
- Test Result Comments: Detailed reports posted as PR comments
- Code Change Detection: Smart analysis of which tests need to run based on changed files
Installation Steps
1. Navigate to GitHub Settings
From the DebuggAI dashboard:
- Click Settings in the left sidebar
- Select GitHub
2. Connect GitHub
- Click Connect GitHub
- You'll be redirected to GitHub to authorize the DebuggAI GitHub App
- Review the requested permissions:
- Read access to code and metadata
- Read and write access to checks and pull requests
- Webhook access for push and PR events
3. Select Repositories
After authorization:
- Choose All repositories or Only select repositories
- For selective access, check the repositories you want DebuggAI to monitor
- Click Install to complete setup
Your connected repositories will appear in DebuggAI within 1-2 minutes.
Features Once Connected
PR-Triggered Test Runs
When a pull request is opened, updated, or reopened:
- DebuggAI receives a webhook from GitHub
- Relevant test suites are queued based on your configuration
- Tests execute against the PR branch
- Results are reported back to GitHub
Status Checks
DebuggAI posts status checks directly to your pull requests:
- Pending: Tests are queued or running
- Success: All tests passed
- Failure: One or more tests failed
You can configure branch protection rules in GitHub to require DebuggAI checks to pass before merging.
Test Result Comments
After test runs complete, DebuggAI posts a summary comment on the PR including:
- Total tests run, passed, failed, skipped
- Links to detailed test reports
- Screenshots and videos for failed tests
- AI-generated debugging insights for failures
Branch Pattern Matching
Configure which branches trigger test runs:
| Pattern | Example Matches |
|---|---|
main | Only the main branch |
feature/* | feature/login, feature/checkout |
release/* | release/v1.0, release/2024-01 |
** | All branches |
Push Notifications
For branches like main or master, configure tests to run on every push, not just PRs. This ensures your default branch stays healthy.
Configuration Options
Branch Triggers
In your project settings, configure which branches trigger tests:
- Navigate to your project in DebuggAI
- Go to Settings > Triggers
- Add branch patterns for:
- PR branches: Which PR target branches trigger tests
- Push branches: Which direct pushes trigger tests
Test Suite Selection
Choose which test suites run on PRs:
- Go to Settings > Test Suites
- For each suite, toggle Run on PR
- Optionally configure different suites for different branch patterns
Status Check Settings
Configure how DebuggAI reports to GitHub:
| Setting | Description |
|---|---|
| Required | Mark the check as required (configure in GitHub branch protection) |
| Report pending | Show pending status while tests queue |
| Comment on PR | Post detailed results as PR comment |
| Comment on failure only | Only comment when tests fail |
Environment Configuration
Adding Secrets
Your tests need access to environment variables and secrets:
- Navigate to your project
- Go to Environment tab
- Add secrets like:
DATABASE_URLAPI_KEY- Third-party service credentials
Use the same secrets from your staging environment.
Per-Branch Environments
For different configurations per branch:
- Go to Environment > Branch Overrides
- Add branch pattern and environment variables
- These override base environment for matching branches
Troubleshooting
Project Not Appearing
Symptoms: Repository connected but no project in DebuggAI
Solutions:
- Wait 1-2 minutes for initial webhook processing
- Open a PR or push to trigger project creation
- Check GitHub webhook delivery in repository settings
- Verify the DebuggAI app has access to the repository
Webhooks Not Firing
Symptoms: PRs opened but no test runs triggered
Solutions:
- Go to GitHub repository Settings > Webhooks
- Find the DebuggAI webhook
- Check Recent Deliveries for errors
- Common issues:
- Webhook URL unreachable (temporary outage)
- Payload too large (simplify PR)
- Authentication failed (reconnect GitHub)
Permission Errors
Symptoms: "Insufficient permissions" errors in test runs
Solutions:
- Go to GitHub Settings > Applications > Installed GitHub Apps
- Find DebuggAI and click Configure
- Ensure the repository has access granted
- Check that required permissions haven't been revoked
Status Checks Not Appearing
Symptoms: Tests run but no status on PR
Solutions:
- Verify Report to GitHub is enabled in project settings
- Check the GitHub App still has checks permission
- Look for errors in the test run logs
Reconnecting GitHub
If the integration stops working:
- Go to DebuggAI Settings > GitHub
- Click Disconnect
- Wait 30 seconds
- Click Connect GitHub and re-authorize
- Select repositories again
Your existing project configurations are preserved.
Rate Limiting
GitHub has API rate limits. If you see rate limit errors:
- Reduce concurrent PR activity
- Stagger test triggers across repositories
- Contact support if limits are consistently hit
Managing Repository Access
Adding Repositories
After initial setup, add more repositories:
- Go to GitHub Settings > Applications > Installed GitHub Apps
- Click Configure on DebuggAI
- Under Repository access, add new repositories
Removing Repositories
To stop DebuggAI from monitoring a repository:
- Same steps as above
- Remove the repository from access list
- Existing project data in DebuggAI is preserved but no new runs trigger
Next Steps
- Configure environment variables in your project settings
- Set up branch protection in GitHub
- View test results in the dashboard
- Set up VS Code extension for local testing