finish getCommitFromEventFunction