Show More
@@ -84,7 +84,7 b' def get_pull_request(project, num, github_api=3):' | |||
|
84 | 84 | url = "https://api.github.com/repos/{project}/pulls/{num}".format(project=project, num=num) |
|
85 | 85 | response = requests.get(url) |
|
86 | 86 | response.raise_for_status() |
|
87 |
if |
|
|
87 | if github_api == 2 : | |
|
88 | 88 | return json.loads(response.text)['pull'] |
|
89 | 89 | return json.loads(response.text) |
|
90 | 90 | |
@@ -99,6 +99,6 b' def get_pulls_list(project, github_api=3):' | |||
|
99 | 99 | url = "http://github.com/api/v2/json/pulls/{project}".format(project=project) |
|
100 | 100 | response = requests.get(url) |
|
101 | 101 | response.raise_for_status() |
|
102 |
if |
|
|
102 | if github_api == 2 : | |
|
103 | 103 | return json.loads(response.text)['pulls'] |
|
104 | 104 | return json.loads(response.text) |
General Comments 0
You need to be logged in to leave comments.
Login now