Skip to content
Snippets Groups Projects

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:

image

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading