migrations
Overview
Name | migrations |
Type | Resource |
Id | github.migrations.migrations |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
archive_url | string | |
created_at | string | |
exclude | array | Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: "repositories" . |
exclude_attachments | boolean | |
exclude_git_data | boolean | |
exclude_metadata | boolean | |
exclude_owner_projects | boolean | |
exclude_releases | boolean | |
guid | string | |
lock_repositories | boolean | |
node_id | string | |
org_metadata_only | boolean | |
owner | object | A GitHub user. |
repositories | array | The repositories included in the migration. Only returned for export migrations. |
state | string | |
updated_at | string | |
url | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_status_for_authenticated_user | SELECT | migration_id | 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. |
get_status_for_org | SELECT | migration_id, org | Fetches the status of a migration. The state of a migration can be one of the following values:pending , which means the migration hasn't started yet.exporting , which means the migration is in progress.exported , which means the migration finished successfully.failed , which means the migration failed. |
list_for_authenticated_user | SELECT | Lists all migrations a user has started. | |
list_for_org | SELECT | org | Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API). A list of repositories is only returned for export migrations. |
start_for_authenticated_user | EXEC | data__repositories | Initiates the generation of a user migration archive. |
start_for_org | EXEC | org, data__repositories | Initiates the generation of a migration archive. |