Connect GitHub Copilot Enterprise
Connect GitHub Copilot Enterprise to LinearB to measure Copilot adoption and accepted lines of code across your enterprise organizations.
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 domain for data residency,
follow the
ghe.com configuration guide
.
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.
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.
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.
Connect GitHub Copilot Enterprise in LinearB
- Go to Settings → Company Settings → AI Tools → Integrations.
- Click Add New.
- Select GitHub Copilot.
- Click Continue.
- Select Enterprise.
- Click Continue.
- Enter the requested GitHub Enterprise token and connection details.
- Configure the enterprise or organization scope displayed in LinearB.
- Click Connect.
LinearB validates the token, enterprise access, and Copilot permissions. When validation succeeds, the Enterprise integration appears in the Connected list.
Verify the Connection
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select the GitHub Copilot Enterprise integration.
- Confirm that its status is Connected.
- Review the configured enterprise and organization scope.
- Allow time for the initial historical import and daily processing.
- 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.
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select the GitHub Copilot Enterprise integration.
- Under Main Settings, click Edit.
- Update the available token or Enterprise settings.
- Click Save changes to apply the update or Cancel to discard it.
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.
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
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select the GitHub Copilot Enterprise integration.
- Click Disconnect.
- Confirm the action.
Reconnect the integration
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Disconnected.
- Select the GitHub Copilot Enterprise integration.
- Click Reconnect.
- Enter a replacement token if the saved token has expired or been revoked.
- Complete validation to restore the integration.
LinearB validates the token and saved configuration before restoring the connection.
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.
Related Articles
How did we do?
Connect Cursor to LinearB
Connect GitHub Copilot Enterprise on ghe.com