Configuring GitHub Copilot
Track GitHub Copilot adoption, usage, and acceptance rates across your teams. Connect Copilot to LinearB to understand how AI-generated code influences delivery and quality
LinearB integrates with GitHub Copilot to track adoption, usage, and acceptance metrics across your engineering teams. This integration enables AI Analytics dashboards and organization-level AI Insights.
For error handling and advanced diagnostics, see GitHub Copilot Troubleshooting .
Before you begin
- LinearB role: Company Admin
- GitHub permissions: Organization owner/admin or sufficient access to generate a Personal Access Token (PAT)
- Copilot Usage Metrics policy enabled in GitHub (see below)
Step 1 – Enable Copilot Usage Metrics in GitHub
In GitHub, navigate to your organization settings and ensure that Copilot usage metrics (Preview) are enabled.
If this policy is disabled:
- LinearB will not be able to retrieve Copilot data.
- The connection step may return a 403 Unauthorized error.
- No AI metrics will appear in AI Insights.
Step 2 – Create a GitHub PAT for Copilot metrics
- Create a new Personal Access Token (PAT) in GitHub.
- Include required scopes for Copilot metrics endpoints:
user:read,read:org. - Copy and securely store the token.
Step 3 – Connect Copilot in LinearB
- Go to Settings → Company Settings → AI Tools → GitHub Copilot.
- Paste the PAT.
- Select organizations (All / Regex / Manual).
- Click Save.
Once saved, the integration should display Connected with a recent “Last updated” timestamp.
Historical data & backfill
- Up to 90 days of Copilot usage data is backfilled on initial connection.
- Older activity will not appear.
- Data updates daily.
Verification
Once connected, Copilot metrics appear in the following dashboards:
- AI Tools Usage — Adoption trends, active users, suggestion acceptance, and lines written.
- AI Adoption — Copilot contributions alongside other AI tools.
Troubleshooting
If the integration fails, returns a 403 Unauthorized error, shows adoption above 100%, or does not display expected data, see: GitHub Copilot Troubleshooting .
How did we do?
Configuring Cursor
Enabling LinearB AI Services