Fix GitLab code intelligence on merge requests
Created by: lguychard
Fixes #8134
More recent DOM changes broke code intelligence on GitLab MRs again:
- The
.js-source-branch
link, from which we parsed the base repo name, is no longer present on the/diffs
page of merge requests.- Fixed this by removing
getDiffPageInfo()
, and resolving repo names and commit IDs solely through the API. This is simpler and more robust.
- Fixed this by removing
- The file path, originally contained in the dataset of the
.file-title-name
element, is now only in thetitle
.- Changed
getFilePathsFromCodeView()
to handle this case.
- Changed