Improve commit_is_bug_related

The method uses a pattern for each project. Previously was just a
pattern for all projects.