GitHub Integration

Connect Bug0 to GitHub for PR comments, commit status checks, and seamless CI/CD integration.

Features

When GitHub is connected:

Setting Up GitHub

Step 1: Install GitHub App

  1. Go to your Workspace Settings
  2. Click Connect GitHub
  3. You'll be redirected to GitHub
  4. Select your organization or personal account
  5. Choose which repositories to grant access
  6. Click Install

Step 2: Connect Repository to Project

  1. Open your project
  2. Go to Project Settings → Integrations → GitHub
  3. Select the repository from the dropdown
  4. Click Connect

You can only connect repositories that the GitHub App has access to. Add more repositories in GitHub's app settings if needed.

PR Comments

When tests run with PR information, Bug0 comments on the PR:

šŸ¤– Bug0 QA Agent

āœ… All tests passed

- Tests completed in 2m 34s
- 12 tests across 3 suites

šŸ“Š [View full report](https://reports.bug0.com/...)

For failures:

šŸ¤– Bug0 QA Agent

āŒ 2 tests failed

- Tests completed in 3m 12s
- 10 passed, 2 failed

Failed tests:
- User Login > Should redirect to dashboard
- Checkout > Should process payment

šŸ“Š [View full report](https://reports.bug0.com/...)

Commit Status

Bug0 updates commit status:

StatusDescription
āœ… SuccessAll tests passed
āŒ FailureOne or more tests failed
ā³ PendingTests are running

The status appears on:

Branch Protection

Use Bug0 status for branch protection:

  1. Go to GitHub repository → Settings → Branches
  2. Add branch protection rule for main
  3. Enable "Require status checks to pass"
  4. Select "Bug0 QA Agent" as required check

Now PRs can't merge until Bug0 tests pass.

Triggering Tests from GitHub

Via GitHub Actions

Use our GitHub Actions workflow to trigger tests on PR events.

Via Deployment Events

Configure deployment triggers when using Vercel, Netlify, or other platforms.

Managing the Integration

View Connection Status

Go to Project Settings → Integrations → GitHub to see:

Change Connected Repository

  1. Open GitHub integration settings
  2. Select a different repository
  3. Save changes

Disconnect GitHub

  1. Open GitHub integration settings
  2. Click Disconnect
  3. Confirm disconnection

To fully remove, also uninstall the GitHub App from GitHub settings.

Passing Git Information

For PR comments and status updates, include git info when triggering tests:

{
  "projectId": "...",
  "gitCommitSha": "abc123def456",
  "gitBranch": "feature/new-checkout",
  "prNumber": "42",
  "owner": "your-org",
  "repo": "your-repo"
}

Troubleshooting

No PR Comments Appearing

  1. Verify GitHub integration is connected
  2. Check repository is selected
  3. Ensure PR number is passed in request
  4. Verify GitHub App has write permissions

Status Not Updating

  1. Check gitCommitSha is correct
  2. Verify repository connection
  3. Check GitHub App permissions

"Repository Not Found"

  1. GitHub App may not have access
  2. Go to GitHub → Settings → Applications
  3. Configure Bug0 app to include the repository

Missing Repositories in Dropdown

  1. GitHub App needs access to those repos
  2. Update GitHub App installation settings
  3. Sync repositories in workspace settings