templates / branches--on commit config: factor out integer parsing from range checks (7192777)
   1: this is just to ensure the directory exists.