From f791414f915367848601439f3a919498e1087082 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang <1696128+deniak@users.noreply.github.com> Date: Thu, 1 Aug 2024 10:13:37 +0400 Subject: [PATCH] Get most recent commit id instead of relying on head_commit --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.py b/index.py index 2f1f168..ff676e6 100755 --- a/index.py +++ b/index.py @@ -67,7 +67,7 @@ def event_id(event, payload): elif event.split(".")[0] == "issue_comment": return payload["comment"]["id"] elif event == "push": - return payload["head_commit"]["id"] + return payload["after"] elif event.split(".")[0] == "pull_request": return payload["pull_request"]["id"] elif event.split(".")[0] == "repository":