v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-07-147873273.9 MB
repos

Sync a fork branch with the upstream repository

Sync a branch of a forked repository to keep it up-to-date with the upstream repository.

post/repos/{owner}/{repo}/merge-upstream

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

branchstring required

The name of the branch which should be updated to match upstream.

Response

The branch has been successfully synced with the upstream repository

messagestring
merge_type'merge' | 'fast-forward' | 'none'
base_branchstring