Creating a matcher to check if a commit information is valid