checking commit types