provider migrations POST /orgs/{org}/migrations
@utdk/github /orgs/{org}/migrations
Start an organization migration
Initiates the generation of a migration archive.
org path required
The organization name. The name is not case sensitive.
string

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.

migrations.startForOrg
POST/orgs/{org}/migrations
Initiates the generation of a migration archive.

Parameters

required

The organization name. The name is not case sensitive.

Input

required

A list of arrays indicating which repositories should be migrated.

Indicates whether repositories should be locked (to prevent manipulation) while migrating data.

Indicates whether metadata should be excluded and only git source should be included for the migration.

Indicates whether the repository git data should be excluded from the migration.

Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).

Indicates whether releases should be excluded from the migration (to reduce migration archive file size).

Indicates whether projects owned by the organization or users should be excluded. from the migration.

Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).

Exclude related items from being returned in the response in order to improve performance of the request.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.migrations.startForOrg({
  "lock_repositories": false,
  "exclude_metadata": false,
  "exclude_git_data": false,
  "exclude_attachments": false,
  "exclude_releases": false,
  "exclude_owner_projects": false,
  "org_metadata_only": false
})