'ref' -> 'sha' for getting PR commit titles

This commit is contained in:
jesopo 2019-06-27 11:21:09 +01:00
parent e1f34c4b8a
commit 1ef93e181f

View file

@ -261,7 +261,7 @@ class GitHub(object):
new_commits = []
for commit in commits.data:
if seen_before:
new_commits.append({"id": commit["ref"],
new_commits.append({"id": commit["sha"],
"message": commit["commit"]["message"]})
elif commit["sha"] == data["before"]:
seen_before = True