API doc here: https://docs.github.com/en/rest/reference/branches#sync-a-fork-branch-with-the-upstream-repository.