parameters: (pr, newbase, token)
docstring: Update the base branch of the pull request on the given repo
      :param pr: A single PullRequst object
      :param newbase: The new base branch
docstring_summary: Update the base branch of the pull request on the given repo
      :param pr: A single PullRequst object
      :param newbase: The new base branch
docstring_tokens: Update the base branch of the pull request on the given repo : param pr : A single PullRequst object : param newbase : The new base branch
function: def update_pr_base_branch(pr, newbase, token):
      """
      Update the base branch of the pull request on the given repo
      :param pr: A single PullRequst object
      :param newbase: The new base branch
  
      """
      info("Updating base branch of #{} to {}".format(pr.id, newbase))
      pull_url = "{}/{}/{}".format(GH_API_URL, GH_PULLS_ENDPOINT.format(pr.repo),
                                   pr.id)
      headers = {"Authorization": "token {}".format(token)}
      data = {"base": newbase}
  
      debug("Sending data '{}' to {}".format(data, pull_url))
      response = requests.post(pull_url, headers=headers, data=json.dumps(data))
      response.raise_for_status()
function_tokens: def update_pr_base_branch ( pr , newbase , token ) : info ( "Updating base branch of #{} to {}" . format ( pr . id , newbase ) ) pull_url = "{}/{}/{}" . format ( GH_API_URL , GH_PULLS_ENDPOINT . format ( pr . repo ) , pr . id ) headers = { "Authorization" : "token {}" . format ( token ) } data = { "base" : newbase } debug ( "Sending data '{}' to {}" . format ( data , pull_url ) ) response = requests . post ( pull_url , headers = headers , data = json . dumps ( data ) ) response . raise_for_status ( )