Fix closing the ticket when a commit fixes an issue

Fixes #43