Skip to main content

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

Steven Silverstone
Updated by Steven Silverstone

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.

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

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

  1. Create a new Personal Access Token (PAT) in GitHub.
  2. Include required scopes for Copilot metrics endpoints: user:read, read:org.
  3. Copy and securely store the token.
Treat the PAT like a password. Rotate 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 PAT.
  3. Select organizations (All / Regex / Manual).
  4. 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.
Data may take a short time to appear after connection. Initial backfill includes up to 90 days of Copilot usage data.

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

Contact