Add condition to check for latest commit activity