Properly detect distinct commits in github webhook parsing