[go: up one dir, main page]

Draft Notes API: Listing MR draft notes does not include file name for drafts notes created on a file

In the web UI for a merge request, under the changes tab, I created a draft note on a file (not a line in the file). When I use the Rest API to list the draft notes, I see it listed in the results, but most of the fields are blank or null. For example

{
"id":1234,
"author_id":1,
"merge_request_id":321,
"resolve_discussion":false,
"discussion_id":null,
"note":"My note on a file",
"commit_id":"1234abcd",
"line_code":null,
"position":{
"base_sha":null,
"start_sha":null,
"head_sha":null,
"old_path":null,
"new_path":null,
"position_type":"text",
"old_line":null,
"new_line":null,
"line_range":null
}
}

This has no indication of what file the draft note is for.

Thanks!

Edited by 🤖 GitLab Bot 🤖