provider migrations GET
/user/migrations/{migration_id} @utdk/github
/user/migrations/{migration_id} Get a user migration status
Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:
* `pending` - the migration hasn't started yet.
* `exporting` - the migration is in progress.
* `exported` - the migration finished successfully.
* `failed` - the migration failed.
Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/migrations/users#download-a-user-migration-archive).
- migration_id path required
- The unique identifier of the migration.
- integer
- exclude query
- array
Try it
Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.migrations.getStatusForAuthenticatedUser()