Prevent PG::Error exception when check commit reference on commit

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Use only escaped auto_link

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'fix-exception-sidekiq' into 'master'

Prevent PG::Error exception

Prevent PG::Error exception when check commit reference on commit

Fix #1646

See merge request !1154
Merge branch 'improve-autolink' into 'master'

Improve autolink

Fixes #1649

See merge request !1155