At Poniverse we store the majority of our repositories on BitBucket and utilise the amazing Phabricator for issue tracking (and more). I've seen before that you can setup links on Bitbucket which providers easier context for values in a commit.
For instance say I was using JIRA with the project key of PRJ and had the JIRA link setup on Bitbucket, if I had a commit message of
PJR-23 Fixed Something it would make the PJR-23 a link to the issue.
To get this working for phabricator I needed to setup a custom link using the values below
Hope you found this useful :)