Configuring GitHub Copilot
LinearB integrates with GitHub Copilot to track adoption, usage, and code acceptance across your teams. Admins can configure the integration in Settings using a personal access token, ensuring Copilot activity flows directly into AI Insights.
LinearB integrates with GitHub Copilot to track adoption, usage, and acceptance metrics across your engineering teams. This integration helps you understand how widely Copilot is being used, how often suggestions are accepted, and what impact Copilot has on your codebase.
Admins can configure Copilot in Settings > Company Settings > AI Tools > Copilot by providing a personal access token (PAT). Once connected, usage data appears in AI Insights.

Overview
GitHub Copilot metrics allow you to:
- Measure adoption rate across your organization.
- Track daily active and engaged users.
- Monitor how many suggestions Copilot provides versus how many are accepted.
- Evaluate the acceptance rate of Copilot-generated code.
This data feeds directly into the AI Tools Usage and AI Adoption widgets in AI Insights.

Setup Steps
- In the LinearB sidebar, go to Settings > Company Settings > AI Tools > GitHub Copilot.
- Generate a GitHub Personal Access Token (PAT) with the required scopes.
- GitHub required scopes include:
manage_billing:copilot,read:org, orread:enterprise
- GitHub required scopes include:
- Paste the token into the Token field.
- Choose which organizations to track:
- Include all organizations — Track usage across all GitHub organizations.
- Select organizations by regex — Use a regex expression to match orgs.
- Select organizations manually — Pick orgs from a list.
- Click Save.
- Verify the connection shows as Connected with the last updated date. If the connection status is not green or shows Disconnected, your Copilot integration token may have expired. Follow the steps in Reauthorizing Copilot to restore the connection.

Metrics
Once connected, the following metrics are available in AI Insights:
- Adoption Rate — Percentage of developers using Copilot.
- Active Users — Average number of developers using Copilot per day.
- Engaged Users — Average number of developers who accept at least one Copilot suggestion per day.
- Code Suggestions — Average number of Copilot suggestions generated per day.
- Code Acceptance — Average number of Copilot suggestions accepted per day.
- Code Acceptance Rate — Percentage of Copilot suggestions accepted.
- Code Lines Suggestions — Average number of Copilot-suggested lines per day.
- Code Lines Accepted — Average number of Copilot-suggested lines accepted per day.
- Code Lines Acceptance Rate — Percentage of suggested lines accepted into the codebase.

Verify in AI Insights
Once enabled, Copilot activity appears in:
- AI Tools Usage — Adoption trends, active users, acceptance rates, and lines written.
- AI Adoption — Contributions from Copilot alongside other AI tools.

Reauthorizing Copilot
If the token has expired or it is invalid, the Copilot status line is not green and a warning message is displayed. Reauthorize Copilot as follows:
- Go to Settings > Company Settings > AI Tools > GitHub Copilot.
- Paste a new GitHub Personal Access Token (PAT) with the scopes above into Token.
- Click Reauthorize. A Replace Copilot token pop-up opens with two optional checkboxes:
- Reset data — all existing Copilot metrics in LinearB are cleared. LinearB backfills the last 90 days and continues collecting going forward.
- Reset setting — reselect which GitHub organizations to include (e.g., include all / regex / manual).
- Click Continue to confirm.

- Verify the status shows Connected and the Last updated timestamp is recent.
• If you change the token to one with different scopes or org visibility, Copilot data access may change until you fix scopes or reselect orgs.
• After reauth, allow a short time for the status to turn green and for usage data to resume on AI Insights (AI Tools Usage / AI Adoption widgets).

Troubleshooting
If Copilot data does not appear in AI Insights:
- Confirm the PAT is valid and has not expired.
- Verify that the correct organizations are included.
- Ensure Copilot activity has occurred recently in your repositories.
- Re-enter the token if the status changes to Disconnected.

Related Articles
How did we do?
Configuring Cursor
Configuring LinearB AI and Automations