Skip to main content

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.

Steven Silverstone
Updated by Steven Silverstone

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.

Important: GitHub Copilot Usage Metrics must be enabled in your GitHub organization settings. Without this policy enabled, LinearB cannot retrieve Copilot data and the integration will fail.

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)

  1. Create a new Personal Access Token (PAT) in GitHub.
  2. Include the following required scopes:
    • user:read
    • read:org
    • Organization Copilot metrics (read)
  3. Copy and securely store the token.
GitHub App users:
If your organization connects GitHub using a GitHub App instead of a PAT, ensure the app includes the Organization Copilot metrics (read) permission.
Treat the PAT like a password. Rotate it according to your organization’s security policy.

Step 3 — Connect Copilot in LinearB

  1. Go to Settings → Company Settings → AI Tools → GitHub Copilot.
  2. Paste the token into the Token field.
  3. Select which organizations to include:
    • Include all organizations
    • Select by regex
    • Select manually
  4. 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

Contact