Commit 7a8df293 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'modify_mr_note'

b0ee3b87

 gitlab: Add modify_merge_request_note function
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !188
parents 939cfbf5 b0ee3b87
......@@ -1576,6 +1576,24 @@ impl Gitlab {
self.put_with_param(path, &[("body", content.as_ref())])
}
/// Edit a note on a merge request.
pub fn modify_merge_request_note<C>(
&self,
project: ProjectId,
merge_request: MergeRequestInternalId,
note: NoteId,
content: C,
) -> GitlabResult<Note>
where
C: AsRef<str>,
{
let path = &format!(
"projects/{}/merge_requests/{}/notes/{}",
project, merge_request, note,
);
self.put_with_param(path, &[("body", content.as_ref())])
}
/// Get issues closed by a merge request.
pub fn get_issues_closed_by_merge_request<I, K, V>(
&self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment