Skip to main content

GitHub

Steps to Integrate with GitHub

  1. Log in to DevDynamics
  2. Go to Settings → Integrations
  3. Click on Integrate GitHub to start the process
  4. You will be redirected to the GitHub sign-in page. If you have multiple accounts, choose the account where you want to install the DevDynamics GitHub App
  5. Select the relevant repositories you can choose, All repositories or only specific ones, then click Install
  6. You will see a confirmation message for successful integration and will be redirected back to the app, where you have to wait 15 minutes to one hour until we pull in your data.

Enabling GitHub Copilot Metrics

Step 1 — Configure Copilot Policies in GitHub

For Enterprises (GitHub Enterprise Plan):

Copilot metrics are available if your enterprise is on GitHub Enterprise Plan with either a GitHub Copilot Business or Copilot Enterprise plan.

To enable copilot metrics collection, the "Copilot usage metrics" policy must be set to Enabled everywhere for the enterprise.

Access: https://github.com/enterprises/<YOUR-GITHUB-ENTERPRISE-NAME>/ai-controls/copilot

Configuration steps:

  1. In the top-right corner of GitHub, click your profile picture
  2. Go to settings
  3. Click Enterprises, then select your enterprise
  4. At the top of the page, click AI Controls
  5. In the sidebar, click Copilot to view Copilot policies
  6. Configure Copilot usage metrics: Enabled everywhere policy

Configure Copilot usage metrics for Enterprise

For Organizations (Copilot Business or Copilot Enterprise):

Copilot metrics are available if your organization has either a Copilot Business or Copilot Enterprise plan.

To enable Copilot metrics collection, the "Copilot usage metrics" policy must be enabled at the organization level.

Access: https://github.com/organizations/<YOUR-GITHUB-ORG-NAME>/settings/copilot/policies

Configuration steps:

  1. In the top-right corner of GitHub, click your profile picture
  2. Click Your organizations, then select your organization
  3. Click Settings
  4. In the left sidebar, click Copilot
  5. Click Policies
  6. Locate the Copilot usage metrics policy and set it to Enabled

Configure Copilot usage metrics for Organization

Step 2 — Grant Access for Usage Metrics to DevDynamics GitHub App

Ensure the DevDynamics GitHub App has the following permissions for usage metrics collection.

Enterprise Copilot Metrics:

Grant access for Enterprise Copilot Metrics

Organization Copilot Metrics:

Grant access for Organization Copilot Metrics

For GitHub Server, allow the following scopes/permissions for the access token:

  • manage_billing:copilot or read:enterprise
  • read:org

Step 3 — Ensure Telemetry is Enabled for Users

Copilot usage data is collected via IDE telemetry. If a developer has telemetry disabled, their activity won't appear in DevDynamics.

Configuration by IDE:

  • VS Code: File → Preferences → Settings, search for telemetry, and ensure telemetry.telemetryLevel is set to all
  • JetBrains / IntelliJ: Go to Settings → Tools → GitHub Copilot and confirm the plugin is active. Telemetry is on by default
  • Other IDEs (Xcode, Eclipse, Visual Studio): Telemetry is enabled by default

Note: Ensure developers are running the latest version of both their IDE and the Copilot plugin.