filter commits with regular expression and save to json