Skip to content

Commit

Permalink
Merge pull request #78 from deniak/master
Browse files Browse the repository at this point in the history
Get most recent commit id instead of relying on head_commit
  • Loading branch information
dontcallmedom authored Aug 19, 2024
2 parents d6841c5 + f791414 commit 446a60a
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 446a60a

Please sign in to comment.