Try the following:
Regex problems: Bug (\d+)
Link to the problem: http://www.company.com/bugzilla/show_bug.cgi?id={1}
This will make the text Bug 123
underlined in commit messages and clicking on it will jump tohttp://www.company.com/bugzilla/show_bug.cgi?id=123
source
to share