Check if there are commits where relevant