Set a tag according to the commit message