Fix commit ID detection on Bitbucket Server single file code views
Created by: lguychard
Fixes #4593
This unfortunately relies on inspecting the document's context (vs. just the code view context). It was the case before this fix as well (getCommitIDFromLink()
uses document.querySelector()
). The alternative would be to resolve single file code views to an element that encompasses the repo header: