POST
/repos/{owner}/{repo}/merge-upstreamSync a fork branch with the upstream repository
Sync a branch of a forked repository to keep it up-to-date with the upstream repository.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
branchstringrequired
The name of the branch which should be updated to match upstream.
200The branch has been successfully synced with the upstream repository
messagestringoptional
merge_typestringoptional
base_branchstringoptional
409The branch could not be synced because of a merge conflict
422The branch could not be synced for some other reason
Error handling
A 409 is returned: The branch could not be synced because of a merge conflict. A 422 is returned: The branch could not be synced for some other reason.