Skip to content

Commit

Permalink
Get most recent commit id instead of relying on head_commit
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak authored Aug 1, 2024
1 parent d6841c5 commit f791414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit f791414

Please sign in to comment.