---
title: "GitHub"
description: "Install the GitHub App to sync repositories, link your personal GitHub account for attribution and @co mentions, and trigger automations from GitHub events."
url: "https://www.thecompany.company/docs/integrations/github"
---

# GitHub

> Install the GitHub App to sync repositories, link your personal GitHub account for attribution and @co mentions, and trigger automations from GitHub events.

Connect GitHub so agents can clone repositories, push branches, open pull requests, and respond on GitHub issues and PRs. The workspace **GitHub App** grants repository access; your **personal GitHub connection** identifies you on `@co` mentions and lets agents open pull requests under your account.

## Install the GitHub App [#install-the-github-app]

1. ### Install for your organization [#install-for-your-organization]

   As an organization owner or admin, open **Plugins → Connectors → GitHub**, select **Install**, and choose which repositories the app can access in GitHub.
2. ### Verify synced repositories [#verify-synced-repositories]

   Open **Settings → Repositories** to confirm your [repositories](/docs/code/repositories) synced.
3. ### Link your personal GitHub account [#link-your-personal-github-account]

   Return to **Plugins → Connectors → GitHub** and select **Your account → Connect** so `@co` mentions identify you and pull requests can open as you.

## Configuration [#configuration]

### Git attribution [#git-attribution]

Configure commit and pull request authorship separately in **Settings → Preferences → Git**:

| Setting | Behavior |
| --- | --- |
| **Commit email** | The email Git records on commits that use your identity. |
| **Commit attribution** | **You and the agent** sets you as author and the agent as committer. **Only you** uses your identity for both. **Only the agent** attributes both to the agent. |
| **Pull request attribution** | **You** opens PRs using your linked GitHub account when available. **The agent** opens PRs through the workspace GitHub App. |

## How to use [#how-to-use]

Start coding work inside a [session](/docs/agent/sessions), or mention `@co` directly in a GitHub pull request comment, inline review thread, issue, or discussion to start or continue a linked session.

> In the storefront repo, fix the empty-cart message, run the checkout tests, and open a draft pull request. Don't merge.

> @co review this pull request for breaking changes to saved cart links and leave findings on the affected lines.

> @co check why checkout CI failed on this pull request and tell me whether it looks related to this diff.

Mentioning `@co` on a pull request does not by itself claim the PR. See [Pull requests](/docs/code/pull-requests) for PR follow-ups and [Code review](/docs/code/code-review) for automated reviews.

### Trigger automations from GitHub events [#trigger-automations-from-github-events]

The GitHub App receives webhooks for pull requests, reviews, checks, and pushes. Combine those events with [Automations](/docs/agent/automations) to run prompts when a pull request opens, checks fail, or changes merge.

## Troubleshooting [#troubleshooting]

- **Repository missing after install:** Update repository access on the GitHub App installation in GitHub, then select **Refresh repositories** in **Settings → Repositories**.
- **GitHub replies with an account-link prompt:** Connect your personal account under **Plugins → Connectors → GitHub → Your account → Connect**, then post the `@co` mention again.

## Next steps [#next-steps]

- [Repositories](https://www.thecompany.company/docs/code/repositories.md): Organize synced repositories and group multi-repo environments.
- [Pull requests](https://www.thecompany.company/docs/code/pull-requests.md): Open draft PRs, fix failing CI, and manage stacked branches.
- [Code review](https://www.thecompany.company/docs/code/code-review.md): Enable automated PR reviews and custom review charters.
- [Automations](https://www.thecompany.company/docs/agent/automations.md): Run prompts automatically on GitHub events.
