Commit b3190865 by David Baumgold

get_github_creds() returns a two-tuple

parent c1f5fe6e
......@@ -261,9 +261,9 @@ def get_pr_info(num):
Returns the info from the Github API
"""
url = "https://api.github.com/repos/edx/edx-platform/pulls/{num}".format(num=num)
credentials = get_github_creds()
username, token = get_github_creds()
headers = {
"Authorization": "token {}".format(credentials[1]),
"Authorization": "token {}".format(token),
"User-Agent": "edx-release",
}
response = requests.get(url, headers=headers)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment