Revert "Fix githubEvents comparision."

This reverts commit 7f0f889c98c0a33f6e418abf83a5936d4e60d17b.
Revert "Revert "Fix githubEvents comparision.""

This reverts commit 4c12d3911b126a29e66ef51ac2d544c6e8fbf768.
Fix logic to compare GitHub events.
Also fix get latest github push event date function.