Skip to content

Commit 446a60a

Browse files
Merge pull request #78 from deniak/master
Get most recent commit id instead of relying on head_commit
2 parents d6841c5 + f791414 commit 446a60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def event_id(event, payload):
6767
elif event.split(".")[0] == "issue_comment":
6868
return payload["comment"]["id"]
6969
elif event == "push":
70-
return payload["head_commit"]["id"]
70+
return payload["after"]
7171
elif event.split(".")[0] == "pull_request":
7272
return payload["pull_request"]["id"]
7373
elif event.split(".")[0] == "repository":

0 commit comments

Comments
 (0)