ENH: Make sure the Mantis ID is added when committing a BUG/ENH

Looks for a Mantis ID in the commit message when the issue type
is either a BUG or ENH.