Introduction
DX onboarding uses pull request merge rates to measure ramp-up time. When you first enable DX onboarding, you may notice inaccurate or missing ramp-up time metrics. This is due to missing historical data. To backfill the data, you'll give DX a GitHub API token and your organization's slug.
Steps to get your organization's slug
1. Go to your organizations page and copy the text there.
Steps to create the API token
Fine-grained token
1. Go to your personal access tokens page and click "Generate new token"
2. Under "Repository access", select "All repositories".
3. Under "Repository permissions" enable "Pull requests > Access: Read-only"
4. Under "Organization permissions", enable "Members > Access: Read-only"
Classic token
1. Go to your personal access tokens page and click "Generate new token (classic)"
2. Enable the "repo" scope
3. Enable the "admin:org > read:org" scope
What DX does with your API key:
Get a list of contributors in your org
Get each contributor's earliest 10 PRs
Store the PR merge timestamps to calculate time-to-Nth PR metrics