Skip to content

GithubImport: Enable users to import _modern_ diff notes

What does this MR do and why?

To enable users to import modern diff notes features, like suggestions, the diff note must be created with DiffNote model, instead of LegacyDiffNote.

This commit enables the GithubImporter to use DiffNotes when the :github_importer_replace_legacy_diffnote feature flag is enabled.

With the intent to get better performance, and given that Github doesn't support quick_actions, the quick actions parsing is disabled for notes created by the importer.

Related to: #340624 (closed)

Screenshots or screen recordings

Github (original) Gitlab (imported)
diffnotes-gh_png diffnotes_png
diffnotes-gh_png diffnotes_png

TODO

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kassio Borges

Merge request reports