Gets information about syncing the fork default branch with the base branch
GET
/repos/{owner}/{repo}/sync_fork
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
Owner of the repo
repo
required
string
Name of the repo
Responses
Section titled “ Responses ”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"}