Skip to content

Fix GitLab code intelligence on merge requests

Administrator requested to merge lg/fix-gitlab-code-intel-mr into master

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.
  • The file path, originally contained in the dataset of the .file-title-name element, is now only in the title.
    • Changed getFilePathsFromCodeView()to handle this case.

Merge request reports

Loading