> ## Documentation Index
> Fetch the complete documentation index at: https://www.edgee.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect GitHub and track repository activity

> Link repositories to your organization and verify session attribution to repositories and pull requests.

GitHub linking lets you connect agent usage to repositories and pull requests. Installing the GitHub App grants repository access; session attribution still needs repository and PR metadata.

## Connect repositories

1. As an administrator, open **Integrations → GitHub**.
2. Install or configure the Edgee GitHub App.
3. Select the GitHub organization and repositories you want to connect, then return to Edgee.
4. Confirm the repositories appear in the GitHub integration view.

Review access on GitHub when adding another repository later. Connecting one repository does not grant access to every repository in the GitHub organization.

## Verify attribution

1. Launch an agent through Edgee inside a connected repository.
2. Have it attach repository and, when relevant, PR metadata using the [session MCP tools](/docs/features/observability/sessions#enriching-sessions-with-mcp-tools).
3. Open the private session report and check the repository and PR links.
4. In **Sessions**, select a period containing that session and check its repository and pull request attribution.

## Missing activity

| Symptom                            | Action                                                                             |
| ---------------------------------- | ---------------------------------------------------------------------------------- |
| No repository appears on a session | Check the repository is selected in the GitHub App and the agent attached metadata |
| Repo visible, PR absent            | Attach the PR URL; the repository alone does not identify a PR                     |
| Session exists, rollup empty       | Check organization, date range, and filters                                        |
| Newly added repository missing     | Update the App's repository selection and refresh the integration view             |

GitHub repositories not connected through the App can be ignored when attached through session tools. Other git hosts have different linking behavior; see [Sessions](/docs/features/observability/sessions).
