'ref' -> 'sha' for getting PR commit titles
This commit is contained in:
parent
e1f34c4b8a
commit
1ef93e181f
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ class GitHub(object):
|
||||||
new_commits = []
|
new_commits = []
|
||||||
for commit in commits.data:
|
for commit in commits.data:
|
||||||
if seen_before:
|
if seen_before:
|
||||||
new_commits.append({"id": commit["ref"],
|
new_commits.append({"id": commit["sha"],
|
||||||
"message": commit["commit"]["message"]})
|
"message": commit["commit"]["message"]})
|
||||||
elif commit["sha"] == data["before"]:
|
elif commit["sha"] == data["before"]:
|
||||||
seen_before = True
|
seen_before = True
|
||||||
|
|
Loading…
Reference in a new issue