Skip to content

GitHub: Migrations schemas

5 GitHub schemas with complete fields and constraints.

← Migrations operations · All schemas

Get large files — response body — item

FieldTypePresenceDescription and constraints
$objectRootPorter Large File
oidstringRequired within parent
pathstringRequired within parent
ref_namestringRequired within parent
sizeJSONRequired within parent
size (anyOf 1)integerAlternative
size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List repositories for a user migration — response body — item

FieldTypePresenceDescription and constraints
$objectRootA GitHub repository.
archive_urlstringRequired within parentA template for the API URL to download the repository as an archive.
assignees_urlstringRequired within parentA template for the API URL to list the available assignees for issues in the repository.
blobs_urlstringRequired within parentA template for the API URL to create or retrieve a raw Git blob in the repository.
branches_urlstringRequired within parentA template for the API URL to get information about branches in the repository.
collaborators_urlstringRequired within parentA template for the API URL to get information about collaborators of the repository.
comments_urlstringRequired within parentA template for the API URL to get information about comments on the repository.
commits_urlstringRequired within parentA template for the API URL to get information about commits on the repository.
compare_urlstringRequired within parentA template for the API URL to compare two commits or refs.
contents_urlstringRequired within parentA template for the API URL to get the contents of the repository.
contributors_urlstringRequired within parentA template for the API URL to list the contributors to the repository.
Format: uri
deployments_urlstringRequired within parentThe API URL to list the deployments of the repository.
Format: uri
descriptionJSONRequired within parent
description (anyOf 1)stringAlternativeThe repository description.
description (anyOf 2)nullAlternative
downloads_urlstringRequired within parentThe API URL to list the downloads on the repository.
Format: uri
events_urlstringRequired within parentThe API URL to list the events of the repository.
Format: uri
forkbooleanRequired within parentWhether the repository is a fork.
forks_urlstringRequired within parentThe API URL to list the forks of the repository.
Format: uri
full_namestringRequired within parentThe full, globally unique, name of the repository.
git_commits_urlstringRequired within parentA template for the API URL to get information about Git commits of the repository.
git_refs_urlstringRequired within parentA template for the API URL to get information about Git refs of the repository.
git_tags_urlstringRequired within parentA template for the API URL to get information about Git tags of the repository.
hooks_urlstringRequired within parentThe API URL to list the hooks on the repository.
Format: uri
html_urlstringRequired within parentThe URL to view the repository on GitHub.com.
Format: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeA unique identifier of the repository.
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
issue_comment_urlstringRequired within parentA template for the API URL to get information about issue comments on the repository.
issue_events_urlstringRequired within parentA template for the API URL to get information about issue events on the repository.
issues_urlstringRequired within parentA template for the API URL to get information about issues on the repository.
keys_urlstringRequired within parentA template for the API URL to get information about deploy keys on the repository.
labels_urlstringRequired within parentA template for the API URL to get information about labels of the repository.
languages_urlstringRequired within parentThe API URL to get information about the languages of the repository.
Format: uri
merges_urlstringRequired within parentThe API URL to merge branches in the repository.
Format: uri
milestones_urlstringRequired within parentA template for the API URL to get information about milestones of the repository.
namestringRequired within parentThe name of the repository.
node_idstringRequired within parentThe GraphQL identifier of the repository.
notifications_urlstringRequired within parentA template for the API URL to get information about notifications on the repository.
ownerModelRequired within parentExpand List users — response body — item
privatebooleanRequired within parentWhether the repository is private.
pulls_urlstringRequired within parentA template for the API URL to get information about pull requests on the repository.
releases_urlstringRequired within parentA template for the API URL to get information about releases on the repository.
stargazers_urlstringRequired within parentThe API URL to list the stargazers on the repository.
Format: uri
statuses_urlstringRequired within parentA template for the API URL to get information about statuses of a commit.
subscribers_urlstringRequired within parentThe API URL to list the subscribers on the repository.
Format: uri
subscription_urlstringRequired within parentThe API URL to subscribe to notifications for this repository.
Format: uri
tags_urlstringRequired within parentThe API URL to get information about tags on the repository.
Format: uri
teams_urlstringRequired within parentThe API URL to list the teams on the repository.
Format: uri
trees_urlstringRequired within parentA template for the API URL to create or retrieve a raw Git tree of the repository.
urlstringRequired within parentThe URL to get more information about the repository from the GitHub API.
Format: uri

Referenced models: List users — response body — item

Map a commit author — response body

FieldTypePresenceDescription and constraints
$objectRootPorter Author
emailstringRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
import_urlstringRequired within parentFormat: uri
namestringRequired within parent
remote_idstringRequired within parent
remote_namestringRequired within parent
urlstringRequired within parentFormat: uri

Start a user migration — response body

FieldTypePresenceDescription and constraints
$objectRootA migration.
archive_urlstringOptionalFormat: uri
created_atstringRequired within parentFormat: date-time
excludearrayOptionalExclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.
exclude[]stringEach itemAllowed values that can be passed to the exclude parameter. The array can include any of: `"repositories"`.
exclude_attachmentsbooleanRequired within parent
exclude_git_databooleanRequired within parent
exclude_metadatabooleanRequired within parent
exclude_owner_projectsbooleanRequired within parent
exclude_releasesbooleanRequired within parent
guidstringRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
lock_repositoriesbooleanRequired within parent
node_idstringRequired within parent
org_metadata_onlybooleanRequired within parent
ownerModelRequired within parentExpand Get an issue — response body — user
repositoriesarrayRequired within parentThe repositories included in the migration. Only returned for export migrations.
repositories[]ModelEach itemExpand List repositories for a user migration — response body — item
statestringRequired within parent
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentFormat: uri

Referenced models: Get an issue — response body — user, List repositories for a user migration — response body — item

Start an import — response body

FieldTypePresenceDescription and constraints
$objectRootA repository import from an external source.
authors_countJSONOptional
authors_count (anyOf 1)JSONAlternative
authors_count (anyOf 1) (anyOf 1)integerAlternative
authors_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
authors_count (anyOf 2)nullAlternative
authors_urlstringRequired within parentFormat: uri
commit_countJSONOptional
commit_count (anyOf 1)JSONAlternative
commit_count (anyOf 1) (anyOf 1)integerAlternative
commit_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
commit_count (anyOf 2)nullAlternative
error_messageJSONOptional
error_message (anyOf 1)stringAlternative
error_message (anyOf 2)nullAlternative
failed_stepJSONOptional
failed_step (anyOf 1)stringAlternative
failed_step (anyOf 2)nullAlternative
has_large_filesbooleanOptional
html_urlstringRequired within parentFormat: uri
import_percentJSONOptional
import_percent (anyOf 1)JSONAlternative
import_percent (anyOf 1) (anyOf 1)integerAlternative
import_percent (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
import_percent (anyOf 2)nullAlternative
large_files_countJSONOptional
large_files_count (anyOf 1)integerAlternative
large_files_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
large_files_sizeJSONOptional
large_files_size (anyOf 1)integerAlternative
large_files_size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
messagestringOptional
project_choicesarrayOptional
project_choices[]objectEach item
project_choices[].human_namestringOptional
project_choices[].tfvc_projectstringOptional
project_choices[].vcsstringOptional
push_percentJSONOptional
push_percent (anyOf 1)JSONAlternative
push_percent (anyOf 1) (anyOf 1)integerAlternative
push_percent (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
push_percent (anyOf 2)nullAlternative
repository_urlstringRequired within parentFormat: uri
statusstringRequired within parentKnown values: auth, error, none, detecting, choose, auth_failed, importing, mapping, waiting_to_push, pushing, complete, setup, unknown, detection_found_multiple, detection_found_nothing, detection_needs_auth
status_textJSONOptional
status_text (anyOf 1)stringAlternative
status_text (anyOf 2)nullAlternative
svc_rootstringOptional
svn_rootstringOptional
tfvc_projectstringOptional
urlstringRequired within parentFormat: uri
use_lfsbooleanOptional
vcsJSONRequired within parent
vcs (anyOf 1)stringAlternative
vcs (anyOf 2)nullAlternative
vcs_urlstringRequired within parentThe URL of the originating repository.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.