# GitHub

### Steps to Integrate with GitHub

1. Log in to[ DevDynamics](https://devdynamics.ai)
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):**

To pull GitHub Copilot usage data into DevDynamics, your GitHub Enterprise admin needs to configure the correct policies and permissions.

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.

Link: <mark style="color:blue;"><https://github.com/enterprises/\\><YOUR-GITHUB-ENTERPRISE-NAME> /ai-controls/copilot</mark>

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:

<figure><img src="https://4171758421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS4rgvJ71tpXan8RhYTT4%2Fuploads%2F8nap6axY1KiAuyvLte8i%2FScreenshot%202026-04-08%20at%202.24.31%E2%80%AFPM.png?alt=media&#x26;token=4b157b67-b01c-4bc2-8338-1db9b1ef5074" alt=""><figcaption></figcaption></figure>

**For Organizations (Copilot Business or Copilot Enterprise):**

To pull GitHub Copilot usage data into DevDynamics, your GitHub Organization admin needs to configure the correct policies and permissions.

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.

Link: <mark style="color:blue;"><https://github.com/organizations/\\><YOUR-GITHUB-ORG-NAME>/settings/copilot/policies</mark>

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.

<figure><img src="https://4171758421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS4rgvJ71tpXan8RhYTT4%2Fuploads%2FtJAdDZIDArtsqqizxas9%2FScreenshot%202026-04-08%20at%202.29.18%E2%80%AFPM.png?alt=media&#x26;token=10e7c60a-7bf5-4237-aefb-e0bd32fedca9" alt=""><figcaption></figcaption></figure>

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

Ensure the **DevDynamics GitHub App** has the following permissions:

**Enterprise Copilot Metrics**

<figure><img src="https://4171758421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS4rgvJ71tpXan8RhYTT4%2Fuploads%2Ff9JGSNYI0pzuKMXDnHRZ%2FScreenshot%202026-04-08%20at%202.31.08%E2%80%AFPM.png?alt=media&#x26;token=ef77139b-1984-44b6-81ee-b1ebefad866c" alt=""><figcaption></figcaption></figure>

\
**Organization Copilot Metrics**&#x20;

<figure><img src="https://4171758421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS4rgvJ71tpXan8RhYTT4%2Fuploads%2FeSv2TuMPBvPJdZzIqjEF%2FScreenshot%202026-04-08%20at%202.32.47%E2%80%AFPM.png?alt=media&#x26;token=03ee60bf-b6dd-4fde-bc7a-8c6ae27c9ce8" alt=""><figcaption></figcaption></figure>

For GitHubServer allow the following scopes/permissions for the access token

1. `manage_billing:copilot` or `read:enterprise`
2. `read:org`

#### Step 2 — 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.

* VS Code: Each developer should check 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&#x20;
* Other IDEs (Xcode, Eclipse, Visual Studio): Telemetry is enabled by default.&#x20;

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

<br>
