Skip to content

Gets information about syncing a fork branch with the base branch

GET
/repos/{owner}/{repo}/sync_fork/{branch}
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

branch
required
string

The branch

SyncForkInfo

Media type application/json

SyncForkInfo information about syncing a fork

object
allowed
boolean
base_commit
string
commits_behind
integer format: int64
fork_commit
string
Example generated
{
"allowed": true,
"base_commit": "example",
"commits_behind": 1,
"fork_commit": "example"
}

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}