[go: up one dir, main page]

Skip to content

(馃巵) Get merge request versions / diffs in GraphQL api

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

On a merge request, I want to create a discussion on a file in the diff view, to do this I need to know a line number that is appearing in the diff. If the discussion is created on a line that doesn't appear in the diff, then the discussion doesn't appear in the diff view, only the timeline view.

I want to get the diff of a file using GraphQL, but as far as I can tell this is not available.

This does appear to be available in the REST API though: https://docs.gitlab.com/ee/api/merge_requests.html#get-a-single-mr-diff-version

Edited by 馃 GitLab Bot 馃