def METHOD_NAME(release, commit_sha):
    params = {
        "target_commitish": commit_sha,
    }
    response = _github_request("patch", "repos/{}/releases/{}".format(repo, release["id"]), params)
    if response.status_code != 200:
        raise exception_from_error("Failed updating commit sha for existing release", response)
    return response.json()