From 1ef93e181f740c4ff0abb3eca99a348e4ca7dab3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 27 Jun 2019 11:21:09 +0100 Subject: 'ref' -> 'sha' for getting PR commit titles --- modules/git_webhooks/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git_webhooks/github.py') 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 -- cgit v1.3.1-10-gc9f91