commit rule parser

Change-Id: Ia1e776a2b1b49a0cdfa964ce59a018ef5e1bfe79