def get_pr_info(num):
 url = u'https://api.github.com/repos/edx/edx-platform/pulls/{num}'.format(num=num)
 (username, token) = get_github_creds()
 headers = {u'Authorization': u'token {}'.format(token), u'User-Agent': u'edx-release'}
 response = requests.get(url, headers=headers)
 result = response.json()
 if (not response.ok):
  raise requests.exceptions.RequestException(result[u'message'])
 return result

def get_pr_info ( num ) : url = u'https://api.github.com/repos/edx/edx-platform/pulls/{num}' . format ( num = num ) ( username , token ) = get_github_creds ( ) headers = { u'Authorization' : u'token {}' . format ( token ) , u'User-Agent' : u'edx-release' } response = requests . get ( url , headers = headers ) result = response . json ( ) if ( not response . ok ) : raise requests . exceptions . RequestException ( result [ u'message' ] ) return result
returns the info from the github api .