Skip to main content
Version: v2 (current)

GitHub Integration

PanDev Metrics integration with GitHub allows you to analyze development activity, pull requests, and automatically add quality metrics to code reviews.

Integration Features

  • Automatic PR Comments — adding code quality metrics to pull requests
  • Repository Analytics — analysis of commits, branches, and contributors
  • Code Review Metrics — review time, number of comments, PR cycle time
  • Privacy — data is collected only from your repositories

Integration Setup

Step 1: Create a Service Account

Create a separate GitHub account that will be used to collect analytics and generate reports when creating/updating PRs.

Why use a service account?

A separate account allows you to distinguish automatic comments from personal ones and simplifies access management.

Step 2: Grant Access to the Service Account

Give the service account Owner or Admin role in all organizations whose repositories need to be analyzed.

Step 3: Create a Token

  1. Log in to the service account
  2. Go to Personal Access Tokens
  3. Click Generate new tokenFine-grained personal access token
  4. Configure the token:
ParameterValue
Token namepandev-metrics
Expiration90 days (or no expiration)
Resource ownerYour organization
Repository accessAll repositories
  1. In Permissions → Repository permissions:
PermissionAccess
IssuesRead and write
MetadataRead-only
Pull requestsRead and write
  1. In Permissions → Organization permissions:
PermissionAccess
WebhooksRead and write
  1. Click Generate token and save the token

Create GitHub Token

Step 4: Connect in PanDev Metrics

  1. Go to Settings → Integrations → GitHub
  2. Paste the copied token
  3. Click Check Connection
  4. After successful verification, click Activate

Tracked Metrics

  • Commits — number and frequency of commits by developers
  • Pull Requests — PR cycle time, time to merge, number of revisions
  • Code Review — review time, number of comments
  • Activity — activity trends by repositories and contributors

FAQ

Is access to private repositories required? Yes, to analyze private repositories, the token must have access to them.

How often is data updated? Data is updated in real-time via GitHub webhooks.

Can I limit integration to specific repositories? Yes, when creating the token, you can select Only select repositories instead of All repositories.