Add condition for commit note route matching