Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G gitlab-ce
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • gitlab-ce
  • Repository
You need to sign in or sign up before continuing.
  • gitlab-ce
  • lib
  • gitlab
  • github_import
  • representation
  • diff_note.rb
Find file BlameHistoryPermalink
  • Kassio Borges's avatar
    GithubImporter: Format diff note suggestions to the gitlab format · e4f59f2e
    Kassio Borges authored Sep 29, 2021
    Github "suggestion" feature has a different markdown format, it uses:
    
        ```suggestion
        SUGGESTION
        ```
    
    While Gitlab has a _range_ in the suggestion markdown, like:
    
        ```suggestion-0+0
        SUGGESTION
        ```
    
    To convert the Github format to Gitlab, in the `DiffNote`
    _representation_ the range will be added. The range is calculated by the
    difference of the `start_line` and `line` when the start_line is
    present, which indicates a multi-line suggestion.
    
    Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/340624
    
    Changelog: changed
    MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71411
    e4f59f2e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7