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.
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
- Log in to the service account
- Go to Personal Access Tokens
- Click Generate new token → Fine-grained personal access token
- Configure the token:
| Parameter | Value |
|---|---|
| Token name | pandev-metrics |
| Expiration | 90 days (or no expiration) |
| Resource owner | Your organization |
| Repository access | All repositories |
- In Permissions → Repository permissions:
| Permission | Access |
|---|---|
| Issues | Read and write |
| Metadata | Read-only |
| Pull requests | Read and write |
- In Permissions → Organization permissions:
| Permission | Access |
|---|---|
| Webhooks | Read and write |
- Click Generate token and save the token

Step 4: Connect in PanDev Metrics
- Go to Settings → Integrations → GitHub
- Paste the copied token
- Click Check Connection
- 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.