mirror of
https://github.com/jlengrand/jetbrains-client-api-repository.git
synced 2026-03-10 08:31:24 +00:00
177 lines
4.8 KiB
HTTP
177 lines
4.8 KiB
HTTP
## MigrationsApi
|
|
|
|
### Cancel an import
|
|
## Cancel an import
|
|
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/import
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Delete a user migration archive
|
|
## Delete a user migration archive
|
|
DELETE https://api.github.com/user/migrations/{{migration_id}}/archive
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Delete an organization migration archive
|
|
## Delete an organization migration archive
|
|
DELETE https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/archive
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Download an organization migration archive
|
|
## Download an organization migration archive
|
|
GET https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/archive
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Download a user migration archive
|
|
## Download a user migration archive
|
|
GET https://api.github.com/user/migrations/{{migration_id}}/archive
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Get commit authors
|
|
## Get commit authors
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/import/authors
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Get an import status
|
|
## Get an import status
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/import
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Get large files
|
|
## Get large files
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/import/large_files
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Get a user migration status
|
|
## Get a user migration status
|
|
GET https://api.github.com/user/migrations/{{migration_id}}
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Get an organization migration status
|
|
## Get an organization migration status
|
|
GET https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### List user migrations
|
|
## List user migrations
|
|
GET https://api.github.com/user/migrations
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### List organization migrations
|
|
## List organization migrations
|
|
GET https://api.github.com/orgs/{{org}}/migrations
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### List repositories for a user migration
|
|
## List repositories for a user migration
|
|
GET https://api.github.com/user/migrations/{{migration_id}}/repositories
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### List repositories in an organization migration
|
|
## List repositories in an organization migration
|
|
GET https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/repositories
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Map a commit author
|
|
## Map a commit author
|
|
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/import/authors/{{author_id}}
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
{
|
|
"email" : "hubot@github.com",
|
|
"name" : "Hubot the Robot"
|
|
}
|
|
|
|
|
|
### Update Git LFS preference
|
|
## Update Git LFS preference
|
|
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/import/lfs
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
{
|
|
"use_lfs" : "opt_in"
|
|
}
|
|
|
|
|
|
### Start a user migration
|
|
## Start a user migration
|
|
POST https://api.github.com/user/migrations
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
{
|
|
"repositories" : [ "octocat/Hello-World" ],
|
|
"lock_repositories" : true
|
|
}
|
|
|
|
|
|
### Start an organization migration
|
|
## Start an organization migration
|
|
POST https://api.github.com/orgs/{{org}}/migrations
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
{
|
|
"repositories" : [ "github/Hello-World" ],
|
|
"lock_repositories" : true
|
|
}
|
|
|
|
|
|
### Start an import
|
|
## Start an import
|
|
PUT https://api.github.com/repos/{{owner}}/{{repo}}/import
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
{
|
|
"vcs" : "subversion",
|
|
"vcs_url" : "http://svn.mycompany.com/svn/myproject",
|
|
"vcs_username" : "octocat",
|
|
"vcs_password" : "secret"
|
|
}
|
|
|
|
|
|
### Unlock a user repository
|
|
## Unlock a user repository
|
|
DELETE https://api.github.com/user/migrations/{{migration_id}}/repos/{{repo_name}}/lock
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Unlock an organization repository
|
|
## Unlock an organization repository
|
|
DELETE https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/repos/{{repo_name}}/lock
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
### Update an import
|
|
## Update an import
|
|
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/import
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer={{bearerToken}}
|
|
|
|
{
|
|
"vcs_username" : "octocat",
|
|
"vcs_password" : "secret"
|
|
}
|
|
|