Skip to main content

Connect GitHub Copilot Enterprise

Connect GitHub Copilot Enterprise to LinearB to measure Copilot adoption and accepted lines of code across your enterprise organizations.

Steven Silverstone
Updated by Steven Silverstone

Overview

Connect GitHub Copilot Enterprise to LinearB to collect Copilot adoption and accepted-lines data across organizations managed under your GitHub Enterprise account.

Use this connection when you need enterprise-wide Copilot reporting rather than an organization-scoped Classic or Fine-grained token integration.

ghe.com environments: If your GitHub Enterprise Cloud environment uses a custom *.ghe.com domain for data residency, follow the ghe.com configuration guide .
Connection limit: Only one active GitHub Copilot Enterprise integration can be connected at a time. A failing Enterprise integration still counts as active.

Data Provided by GitHub Copilot Enterprise

Depending on the data returned by GitHub, the integration can provide:

  • Enterprise and organization-level Copilot adoption
  • Active Copilot users
  • Code suggestions and acceptances
  • Accepted lines of code
  • Adoption trends across enterprise organizations and teams

Adoption and accepted-lines data appears in AI Analytics.

Note: Model, token, and estimated-consumption data is not currently available through GitHub Copilot integrations.

Historical Data and Collection Cadence

  • Up to 90 days of historical Copilot data can be backfilled during the initial connection.
  • Activity outside the available initial backfill window does not appear in LinearB.
  • After the initial connection, Copilot data is updated daily.

Before You Begin

Verify that you have:

  • Access to AI Tools settings in LinearB.
  • GitHub Enterprise owner or equivalent administrative access.
  • Copilot usage metrics enabled for the enterprise and relevant organizations.
  • A GitHub token that can read Copilot metrics for the required enterprise scope.
  • Access to the enterprise organizations you want LinearB to include.
Access: The token owner must be able to access Copilot metrics for the enterprise and organizations included in the integration.
Security: Treat the token like a password and store it securely. Rotate it according to your organization’s security policy.

Enable Copilot Usage Metrics

Confirm that Copilot usage metrics are enabled in your GitHub Enterprise and organization settings.

If Copilot usage metrics are not enabled:

  • LinearB cannot retrieve Copilot usage data.
  • The integration may return a 403 authorization error.
  • Copilot metrics do not appear in LinearB.

Prepare the Enterprise Token

Create or select a GitHub token that can read Copilot metrics for the enterprise and organizations you want to measure.

Before connecting it to LinearB, confirm that:

  • The token is valid and has not expired.
  • The token owner can access the GitHub Enterprise account.
  • The token can read Copilot metrics for the required enterprise scope.
  • The token can access the organizations you want to include.
  • Any required organization or enterprise approval has been completed.
Least privilege: GitHub authentication and approval requirements can vary by enterprise security policy. Grant only the read access required to collect Copilot metrics.

Connect GitHub Copilot Enterprise in LinearB

  1. Go to Settings → Company Settings → AI Tools → Integrations.
  2. Click Add New.
  3. Select GitHub Copilot.
  4. Click Continue.
  5. Select Enterprise.
  6. Click Continue.
  7. Enter the requested GitHub Enterprise token and connection details.
  8. Configure the enterprise or organization scope displayed in LinearB.
  9. Click Connect.

LinearB validates the token, enterprise access, and Copilot permissions. When validation succeeds, the Enterprise integration appears in the Connected list.

Duplicate integrations: If another active GitHub Copilot Enterprise integration already exists, disconnect it before connecting another one.

Verify the Connection

  1. Open Settings → Company Settings → AI Tools → Integrations.
  2. Select Connected.
  3. Select the GitHub Copilot Enterprise integration.
  4. Confirm that its status is Connected.
  5. Review the configured enterprise and organization scope.
  6. Allow time for the initial historical import and daily processing.
  7. Open AI Analytics and confirm that Copilot data appears.

Edit the Enterprise Integration

Use Edit mode to replace the token or update the Enterprise connection details.

  1. Open Settings → Company Settings → AI Tools → Integrations.
  2. Select Connected.
  3. Select the GitHub Copilot Enterprise integration.
  4. Under Main Settings, click Edit.
  5. Update the available token or Enterprise settings.
  6. Click Save changes to apply the update or Cancel to discard it.
Permissions: Anyone who has access to AI Tools settings can edit the integration. No additional LinearB permission is required specifically for the Edit action.
Important: If you change the Enterprise name or domain, re-enter the GitHub token before saving.

What happens to historical data?

Editing the Enterprise integration does not delete previously collected Copilot metrics.

  • Token-only changes are picked up during scheduled collection.
  • Changing the Enterprise name can trigger recollection of up to 90 days of recent data.
  • Recollected records are updated in place and are not counted twice.
  • Data older than the recollection window remains unchanged.
  • If the integration is pointed to another Enterprise, metrics previously collected from the original Enterprise remain in LinearB.
Important: Changing the connected Enterprise does not remove data collected from the previous Enterprise. Review the change carefully before saving.

Disconnect or Reconnect

Disconnecting GitHub Copilot Enterprise stops new data collection and moves the integration to the Disconnected list. Previously collected data is preserved.

Disconnect the integration

  1. Open Settings → Company Settings → AI Tools → Integrations.
  2. Select Connected.
  3. Select the GitHub Copilot Enterprise integration.
  4. Click Disconnect.
  5. Confirm the action.

Reconnect the integration

  1. Open Settings → Company Settings → AI Tools → Integrations.
  2. Select Disconnected.
  3. Select the GitHub Copilot Enterprise integration.
  4. Click Reconnect.
  5. Enter a replacement token if the saved token has expired or been revoked.
  6. Complete validation to restore the integration.

LinearB validates the token and saved configuration before restoring the connection.

Note: If the saved token is no longer valid, create a valid replacement token and enter it during the reconnect flow. You do not need to create another Enterprise integration.

Learn more:


Troubleshooting

403 Authorization Error

  • Confirm that Copilot usage metrics are enabled.
  • Verify that the token owner can access the GitHub Enterprise account.
  • Confirm that the token can read Copilot metrics for the required scope.
  • Verify that required Enterprise or organization approval has been completed.

Connection Error

  • Confirm that the token is valid and has not expired or been revoked.
  • Verify that the selected connection type is Enterprise.
  • Confirm that the configured Enterprise details are correct.
  • Verify that the token can access the selected organizations.
  • Select the integration, click Edit, correct the configuration, and click Save changes.

Expected Organizations Are Missing

  • Confirm that the organizations belong to the connected Enterprise.
  • Verify that the token owner can access the missing organizations.
  • Review the Enterprise or organization scope configured in LinearB.

No Copilot Data Appears

  • Allow time for the initial import and daily processing.
  • Confirm that developers are actively using Copilot in the included organizations.
  • Verify that GitHub users are mapped to the appropriate LinearB users.
  • Confirm that the expected organizations and repositories are represented in LinearB.

Learn more:


Known Limitations

  • Copilot data is updated daily, not in real time.
  • Historical activity outside the available initial backfill window is not imported during the first connection.
  • Available metrics depend on the data returned by GitHub.
  • Enterprise access and approval requirements can vary by GitHub configuration.
  • Model, token, and estimated-consumption data is not currently available.

How did we do?

Connect Cursor to LinearB

Connect GitHub Copilot Enterprise on ghe.com

Contact