Skip to content

Fix commit ID detection on Bitbucket Server single file code views

Warren Gifford requested to merge bitbucket-commit-id-revision-selector into master

Created by: lguychard

Fixes #4593 (closed)

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:

image

Merge request reports

Loading