aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-27 11:21:09 +0100
committerGravatar jesopo2019-06-27 11:21:09 +0100
commit1ef93e181f740c4ff0abb3eca99a348e4ca7dab3 (patch)
tree67de766bf9731b60731b31fe64e9a017f39373ba /modules/git_webhooks/github.py
parentshortify push range url (diff)
signature
'ref' -> 'sha' for getting PR commit titles
Diffstat (limited to 'modules/git_webhooks/github.py')
-rw-r--r--modules/git_webhooks/github.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index 09f5ef92..29893a2a 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -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