Configuring GitHub Copilot (PAT Classic)
Track GitHub Copilot adoption, usage, and acceptance rates across your teams using a classic Personal Access Token (PAT). Connect Copilot to LinearB to understand how AI-generated code influences delivery and quality.
LinearB integrates with GitHub Copilot using a classic Personal Access Token (PAT) to track AI adoption, usage, and code contribution across your engineering organization.
Once connected, Copilot usage data is ingested into LinearB and powers AI Analytics and AI Insights dashboards.
For advanced diagnostics and error handling, see GitHub Copilot Troubleshooting .
Before You Begin
- LinearB role: Company Admin
- GitHub permissions: Organization owner/admin or sufficient access to create a Personal Access Token (PAT)
- Copilot Usage Metrics policy enabled in GitHub
Step 1 — Enable Copilot Usage Metrics in GitHub
In GitHub, navigate to your organization settings and ensure that Copilot usage metrics are enabled.
- LinearB cannot retrieve Copilot usage data if disabled
- The connection may return a 403 Unauthorized error
- No AI metrics will appear in dashboards
Step 2 — Create a GitHub Personal Access Token (Classic)
- Create a new Personal Access Token (PAT) in GitHub.
- Include the following required scopes:
user:readread:org- Organization Copilot metrics (read)
- Copy and securely store the token.
If your organization connects GitHub using a GitHub App instead of a PAT, ensure the app includes the Organization Copilot metrics (read) permission.
Step 3 — Connect Copilot in LinearB
- Go to Settings → Company Settings → AI Tools → GitHub Copilot.
- Paste the token into the Token field.
- Select which organizations to include:
- Include all organizations
- Select by regex
- Select manually
- Click Save.
Once connected, the integration will display Connected with a recent update timestamp.
Historical Data & Backfill
- Up to 90 days of data is backfilled on initial connection
- Older activity will not appear
- Data updates daily
What Data Is Ingested
- Active AI users
- Suggestion acceptance signals
- AI-generated code contribution
- Adoption trends across teams
Where Copilot Data Appears
- AI Tools Usage
- AI Adoption
- AI Insights Dashboard
- AI Analytics Dashboard
- AI-filtered metrics across Metrics
Troubleshooting
GitHub Copilot Troubleshooting
Known Limitations
- Data is updated daily, not in real time
- Requires Copilot Usage Metrics to be enabled
- Organization-level reporting may differ from repo-level activity
How did we do?
Configuring GitHub Copilot (Fine-Grained PAT)
Configuring GitHub Copilot Enterprise